Deploy

Free credit available Limited time

Django hosting, without the DevOps.

Deploy a Django app straight from GitHub onto a server we provision and maintain. Selfhost.dev 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 Selfhost.dev can run it for you?

+$5.00 added at signup ยท deployment choice preserved ยท no card

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.dev 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.dev provisions a dedicated server for you.

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_KEYDjango secret key; keep it long and random.
DEBUGSet to False in production.
ALLOWED_HOSTSYour domain and the project subdomain.
DATABASE_URLConnection string for your project or managed Postgres.

Why Selfhost.dev

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.

Drive it from your AI editor

Trigger deploys, stream logs, set env vars and add domains from Claude, Cursor or any MCP client: 189 MCP tools.

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.dev?
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.dev 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. Signing up gets you a $5 welcome credit, no card needed. 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.
Can I manage my Django deployment with AI?
Yes. The Selfhost.dev MCP server ships 189 tools across 31 modules: trigger deploys, stream build logs, set environment variables, add domains and manage the project from Claude, Cursor, Windsurf or any MCP client. Explore the MCP server.

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

Postgres included
Auto-deploy + SSL
$5 in free credit, no card
Launch Django