page:blueprints:real estate brokerages:public directory:django
Real estate brokerages: public directory using Django
Summary
A public directory blueprint for real estate brokerages built with Django on Ample. Domain schema:
- Listings (reference, address, price, listing_type, publishing_status, agency_id): property listings with publishing status
- Agencies (name, license_number, region): agencies or branches
- Listing Media (listing_id, object_key, cdn_key, sort_order): public media per listing
- Reports (agency_id, period, object_key, generated_at): agency-scoped reports
- State Transitions (record_type, from_state, to_state): the allowed state machine.
Public information includes:
- Published listings with media,
- Agent and agency profiles,
- Buying and selling guides.
Out of scope until handling is reviewed:
- Vendor and buyer identity,
- Offers and negotiations,
- Unpublished listings.
Only listings with publishing_status = published appear publicly; offers and identities are out of scope.
Technical Basis
Technical basis verified on Django: a workspace-scoped table, an explicit state machine (draft to review to published) that rejects invalid transitions, and cross-workspace reads that return nothing (transitions=true isolation=true).
Representative Queries
- Real estate brokerages: public directory using Django
- Where can I host Real estate brokerages: Public directory built with Django?
- I need a genuinely specialized public directory workflow covering property listings, publishing status and agency-scoped reporting.
Resource Requirements
- Compute
- Postgres
- CDN
Infrastructure Requirements
- Compute: Apps run in isolated x86_64 Firecracker microVMs; sizes are the priced VM sizes.
- Postgres: Managed PostgreSQL 16 runs in its own microVM.
- CDN: The CDN host serves objects from published buckets.
Framework and Workload
- Framework: Django
- Workload: Public directory
- Industry: Real estate brokerages
Release Status
- Release Status: published
- Support Status: verified
- Execution Status: ready
Prerequisites
- A Django project (pip install into .ample/python from requirements.txt, then waitress serving project.wsgi from run.py reading PORT on the python-3.12 template)
- A PostgreSQL driver reading DATABASE_URL (auto-provisioned when omitted)
- Bucket credentials from
ample bucket createpassed as encrypted S3_* environment variables and a published bucket for public assets (CDN_*) - Review which real estate brokerages data classes may be handled at all
Workflow Steps
- Model the real estate brokerages domain: Create the tables listings, agencies, listing_media, reports, state_transitions.
- Model listings with a publishing_status state machine scoped to the agency.
- Serve only published listings, with media from the CDN bucket.
- Enforce the agency scope on every query.
- Deploy and verify a published listing and that unpublished listings are absent.
- Deploy: Run synchronous deploy once; running it again with no change is a no-op.
- Verify: Run the pattern self-test(s) and your own acceptance checks.
Cost Estimate
- Currency: USD
- Monthly Amount: 10.0
- Basis: Size prices from pricing.toml at build revision.
- Components:
- App server: s-1vcpu-1gb: monthly amount 5.0
- Managed PostgreSQL database: s-1vcpu-1gb: monthly amount 5.0
Limitations
- The technical basis was verified with the pattern fixture; the real estate brokerages schema is an original design for this blueprint and was not executed as a separate application.
- No health, financial, privacy or other compliance claim is made.
- Verified on the python-3.12 template at s-1vcpu-1gb.
Evidence Summary
Canary run summary: Django pattern fixture deployed on Ample; the relational records checks passed. The blueprint's Real estate brokerages schema builds on the verified basis but was not separately executed.
Next Actions
- Browse the catalog index
- Search published recipes by intent, stack and constraints
- Prepare a side-effect-free deployment plan for an authorized project
- Read the existing agent authentication setup
- Browse Real estate brokerages
- Browse Public directory
- Browse Django
- Browse Deploy web app