page:recipes:public directory:django:public site

Host public directory with Django: public-site delivery

Deploy a public directory built with Django on Ample using the public web service pattern. Compute runs the app in an isolated microVM behind a public HTTPS URL, and a published bucket serves public assets from the CDN host. Verified on Django: a versioned, immutable-cached asset uploaded to a published bucket and served from the CDN URL alongside the app's own public HTTPS URL. Not separately tested: your site content and build; treat the public directory-specific behavior as your application code.

Representative Queries

Resource Requirements

Infrastructure Requirements

Compute

CDN

Prerequisites

  1. A Django project that builds and starts with the documented commands (pip install into .ample/python from requirements.txt, then waitress serving project.wsgi from run.py reading PORT on the python-3.12 template)
  2. A bucket from ample bucket create with its credentials passed as encrypted S3_* environment variables
  3. An Ample account token with servers:write, buckets:read

Tested Configuration

Workflow Steps

Step 1: Build and start

Step 2: Wire object storage

Step 3: Deploy

Step 4: Verify

Limitations

Cost Estimate

Evidence Summary

Next Actions