Verified framework

Managed Django hosting

Deploy a Django application on a managed server as a persistent, supervised process.

Connect your GitHub repository from your dashboard, pick the branch and deploy it. See "How to deploy a web app from GitHub" for the exact steps.

Supported versions
3.12, 3.11
Runtime mode
Runs as a managed, always-on process

Managed HTTPS

TLS certificates are issued and renewed automatically.

Environment variables

Configure your Django settings module and secrets from your dashboard.

How this deployment works

How we detect your project

  • A manage.py file in the repository
  • A requirements.txt file in the repository

What happens on every deploy

  • Build step pip install --no-input --target=/app/.python-packages -r requirements.txt
  • Build step python manage.py collectstatic --noinput
  • Build step python manage.py check --deploy
  • Start command gunicorn --bind 0.0.0.0:8000 $WSGI_MODULE
  • The app listens on port 8000
  • A new release goes live only after / answers the health check
  • Background workers and scheduled tasks are supported

Environment variables

  • Django SECRET_KEY setting. (generated for you) DJANGO_SECRET_KEY
  • Python import path to the WSGI application, e.g. "myproject.wsgi:application". (you set it before the first deploy) WSGI_MODULE
  • Password for the provisioned application database user. (generated for you) DB_PASSWORD

Database

  • PostgreSQL 16.4 is provisioned next to your app and is not exposed publicly
  • The connection settings are injected as environment variables DATABASE_URL

Persistent storage

  • These paths survive redeploys media

Minimum resources

  • 0.5 vCPU share, 512 MB memory, 2000 MB storage

Related pages

Frequently asked questions

Do I need to configure my own WSGI server?

The deployment pipeline runs your app as a managed process; check your plan's environment-variable requirements before deploying.