page:blueprints:b2b saas:documentation site:django

B2B SaaS: Documentation Site Using Django

A documentation site blueprint for B2B SaaS built with Django on Ample. Domain schema:

Public information: product documentation by version, pricing and plan comparison, status and changelog.

Kept out of scope until handling is reviewed: customer data inside workspaces, usage and billing records, support attachments. Customer workspace data is tenant-scoped; isolation is application-enforced and no security certification is claimed.

Technical basis verified on Django:

Representative Queries

Workflow Steps

  1. Model the B2B SaaS Domain: Create the tables customer_workspaces, workspace_members, doc_versions, customer_assets, state_transitions. Customer tenants live in customer_workspaces; keep the sensitive classes out of this schema.
  2. Model Versioned Documents: with a state machine (draft, review, published) scoped to a product version.
  3. Publish Assets: for released versions to the CDN bucket.
  4. Serve Only Published Versions: publicly.
  5. Deploy: Run the synchronous deploy once and read the result.
    • Command: ample deploy . --name --public --start "python3 run.py" --env S3_ENDPOINT=...
  6. Verify: Run the pattern self-test(s) from the example and your own acceptance checks for the B2B SaaS workflow.
    • Command: ample logs --kind build

Examples

Success Checks

Limitations

Cost Estimate

Evidence Summary

Formats

Next Actions