Deploy

Django hosting,

without the DevOps.

Deploy a Django app straight from GitHub onto a server we provision and maintain. SelfHost builds it, runs your migrations and a Gunicorn or ASGI server, and handles static files, a managed Postgres, and SSL, with auto-deploy on push.

Why wrangle Gunicorn, Nginx, and a VPS, when you can SelfHost it?

Gunicorn or ASGI /Managed PostgreSQL /Static files + SSL /From ~$0.02/hr

What you get

Your Django app, in production.
On a server you control.

Django in production usually means Gunicorn or an ASGI server, a Postgres database, static and media files, and a reverse proxy with TLS. SelfHost handles the server, the proxy, and SSL, builds your app from the repo, and gives you a managed Postgres to point DATABASE_URL at. You write Django; we run the box.

Nixpacks (Python, auto), or your Dockerfile

Deploy in 5 steps

From zero to live.
No server to set up.

From repo to a live Django site, with the server, database, and TLS handled.

1

Create a Project

Name it and SelfHost provisions a dedicated server in a couple of minutes.

2

Connect your Django repo

Connect GitHub or paste a repo URL, pick a branch, and enable auto-deploy on push. Nixpacks detects Python from your requirements or pyproject.

3

Set the start command

Point it at gunicorn yourproject.wsgi or an ASGI server like uvicorn, set the port, and configure the build to collect static files.

4

Add a managed Postgres

Drop a PostgreSQL into the project, or attach a dedicated managed instance, and set DATABASE_URL in your environment.

5

Set env vars and go live

Add SECRET_KEY, ALLOWED_HOSTS, and your config (paste a .env to import), point a domain, and HTTPS is provisioned automatically.

Environment variables

Configure it
in minutes.

Django reads its config from the environment. The common ones:

Paste a .env to import in bulk, or set keys one by one. Values are wired into every build and deploy.

Key variables

SECRET_KEY Django secret key; keep it long and random.
DEBUG Set to False in production.
ALLOWED_HOSTS Your domain and the project subdomain.
DATABASE_URL Connection string for your project or managed Postgres.

What you get

Django, the easy way.
On a server you control.

Gunicorn or ASGI

Run WSGI with Gunicorn or async Django with an ASGI server. You set the start command; we run it.

Managed PostgreSQL

Add a one-click Postgres in the project, or a dedicated managed instance with PITR, pooling, and Multi-AZ.

Static and media files

Collect static at build time and serve them from your server, with whitenoise or your own setup.

Auto-deploy on push

Every push builds, migrates, and ships, with PR previews, rollback, and streaming logs.

Custom domain + SSL

Add your domain, verify DNS, and renewed HTTPS is handled for you.

Pay only for what you run

From around $0.02/hr against prepaid credits, paused at a zero balance.

Which one

Django, Postgres, and more on one server

Run your Django app, a Celery worker, Redis, and Postgres on the same project server, billed as one server, not four add-ons.

Frequently Asked Questions

How do I host a Django app on SelfHost?
Connect your GitHub repo, set the start command to Gunicorn or an ASGI server, add a managed Postgres and your env vars (SECRET_KEY, ALLOWED_HOSTS, DATABASE_URL), and deploy. SelfHost builds it, handles the proxy and SSL, and runs it on a server we maintain.
Does it run migrations and collect static files?
Yes. Add your migrate and collectstatic commands to the build or release step, and they run on each deploy. Static files are served from your server.
Can I use a managed Postgres with Django?
Yes. Add a one-click Postgres in the project or attach a dedicated managed PostgreSQL instance, then point DATABASE_URL at it. Managed PostgreSQL.
How much does Django hosting cost?
Pay-as-you-go from around $0.02/hr per project server (about $0.50 a day), no tiers. Link a card for a welcome credit worth roughly 48 hours. See pricing.
Can I run Celery workers too?
Yes. Add a Redis and a worker service to the same project, so your web app and background jobs run side by side on one server.

Your Django app, in production.
On a server run for you.

Postgres included
Auto-deploy + SSL
Run a project free for ~48 hours
Deploy Django