Django

Django on Unbroker

Deploy Django with Gunicorn and PostgreSQL. Add persistent storage or a background worker on Pro.

01

A container you control

Package Django, Gunicorn and your dependencies in a repository Dockerfile.

02

Data beside the app

Choose an Apps PostgreSQL node or managed cluster, with credentials supplied at runtime.

03

Workers and persistent storage

Add a worker for asynchronous tasks and persistent storage for file-backed application needs.

Page contents

Deploy Django with Docker

Django brings together routes, authentication, an ORM and application administration. Unbroker brings together the infrastructure that application needs: the web service, its database and the supporting processes.

Deploy from a Dockerfile so your Python runtime and production server stay explicit. Keep configuration in service variables and follow the build and running revision in Cloud.

Database and file storage

Choose PostgreSQL operations

Use an Apps node when you want a private database service in your project, or select a provider-managed cluster when you want the provider to operate the host and cluster. Your application continues to own its schema and migrations.

Separate media from application code

Add a persistent volume for an application designed around local durable files, or connect external object storage. Volume-backed services run one replica; use the storage model that fits your concurrency needs.

Give asynchronous work its own service

Move email processing, indexing or other queue-driven tasks into a worker on Pro. The worker can share the application’s database and queue while having its own start command and runtime logs.

You can inspect and deploy the project visually in Cloud or use ubctl from the terminal. The Unbroker agent skill provides a path for operational tasks from your coding environment.

Deployment tutorial

The tutorial walks through production settings, a Gunicorn image, static assets, migrations and verification.

Application templates

Deploy Ghost, Flowise, Memos and other apps from the public catalog. Review their service configuration in the template repository.

View templatesTemplate repository

Deploy on Unbroker

Connect a repository in Cloud. The deployment tutorial covers configuration and verification.