First-time Setup
Complete this setup after migrations succeed. Use the backend commands and API checks below; interface instructions are documented in the Product Guide.
1. Create the Required Initial Records
python manage.py populate_checklists
python manage.py createsuperuser
python manage.py checkpopulate_checklists creates or updates the buy and lease workflow checklist definitions. The custom superuser manager assigns the new account the admin role required by /api/v1/accounts/admins/ routes, in addition to Django is_staff and is_superuser access.
Sign in at /admin/ and create any real amenity catalog entries needed by listings. The public amenities endpoint is read-only; the current API does not provide an amenity-management route.
Create a separate named superuser for each operator who needs Django administration. The administrator API can update existing users but does not expose an endpoint for creating additional administrator accounts.
2. Verify Backend Access
| Check | Expected result |
|---|---|
| GET /health/ | HTTP 200 with `status: ok` and `database: ok`. |
| POST /api/v1/accounts/admins/login/ | Returns the administrator profile plus access and refresh tokens. |
| GET /api/v1/accounts/admins/me/ | Returns the authenticated administrator when sent the access token. |
| GET /api/v1/admins/dashboard/summary/ | Returns the administrator dashboard summary. |
| GET /api/v1/customers/properties/ | Returns a public paginated list, which may initially be empty. |
3. Test the Listing Lifecycle
Use disposable accounts and records:
Register a seller
Call POST /api/v1/accounts/sellers/register/. The account receives the
seller_owner role and JWT tokens.
Create a draft
Submit seller KYB and obtain administrator approval first.
With the seller access token, call POST /api/v1/sellers/properties/. Use
purpose buy or rent; only those purposes are exposed by public
discovery.
Submit for review
Call POST /api/v1/sellers/properties/{property_id}/submit/. The status
changes from draft to pending and active administrators receive a
notification record.
Approve as administrator
Call POST /api/v1/admins/properties/{property_id}/approve/. Approval
changes the status to available and records the reviewer and approval
time.
Confirm public discovery
Fetch GET /api/v1/customers/properties/{id - or - slug}/ without
authentication and confirm the approved listing is returned.
4. Test Account Communication
- Customer and seller registration send email-verification tokens.
- Customer password recovery sends a six-digit code; seller and administrator recovery send signed tokens.
- Confirm verification and recovery messages reach the test inbox and inspect provider delivery logs.
Set EMAIL_FRONTEND_URL to control the frontend link used in verification emails. Test the verification and recovery links with a test account.
5. Test the Core Workflows
- Submit a customer KYC or seller KYB record using completed managed-upload identifiers, then approve or reject it through the administrator API.
- Request a property appointment and confirm the seller can accept, reject, reschedule, or cancel it.
- For purchase or lease reservations, submit bank-transfer evidence and verify or reject the payment as an administrator.
- Confirm administrator notifications through REST and test realtime delivery in your deployment.
seed_demo_data creates fixed demonstration accounts with a shared password.
Use it only in a disposable local or test database.
Launch Gate
- Production settings and a production ASGI/WSGI command have been reviewed; Django
runserveris not exposed publicly. - The declared WhiteNoise dependency is installed and Django static files are collected for production.
- PostgreSQL and any client-supplied media URLs have backup and retention plans.
- SMTP delivery is observable, and recovery tokens/codes are handled securely by the client.
- Bank-transfer instructions and the administrator payment-review workflow have been tested.
- Redis-backed Channels/cache and Celery services are configured before relying on multi-process realtime, persistent OTPs, or background jobs.
- The Next.js frontend has its production API URL configured and its key screens have been checked against the deployed backend.
Once these checks pass, continue to Using EstateHub.