Django hosting on your own server, deployed by your coding agent.
Ployz turns a server you rent into a platform your coding agent runs. Push to GitHub and it deploys your Gunicorn web, Celery worker, Celery beat, Postgres and Redis. Migrations run before every deploy, every pull request gets its own preview, and deleting a database waits for you.
One Django app, five bills.
A small Django app (one Gunicorn web process, a Celery worker, Celery beat, Postgres and a small Redis) costs $33 a month on Heroku and Railway, $53 on Fly.io and $66 on Render. The same app runs on a rented server for $7, and Ployz is free on it, custom domains included. At a medium size (two 1 GB web processes, 4 GB Postgres, 256 MB Redis) it's $108 to $318 on the platforms and $19 on a server. Move the sliders to match your app.
- RAM the stack needs
- 3.27 GB
- Heroku$33/mo
Smallest dyno with that RAM (Basic allows one per process type), a Basic dyno for beat, Essential or Standard Postgres by size, Key-Value Store Mini, Premium-2 or Premium-5.
- Render (Hobby)$66/mo
Smallest plan with that RAM, a $7 worker for beat, Postgres storage $0.30/GB, Key Value from $10, traffic past 5 GB at $0.15/GB. Full-stack previews need Pro, $25 more.
- Railway$33/mo
$10/GB RAM and $20/vCPU a month, assuming the RAM is in use all month and 0.1 vCPU per GB. Egress $0.05/GB, volume $0.15/GB. Pro once the volume passes 5 GB.
- Fly.io (iad)$53/mo
Shared Machines at $6/GB RAM, a 256 MB Machine for beat, Managed Postgres Basic, Starter or Launch (no 4 GB plan) plus $0.28/GB, Redis on its own Machine, egress $0.02/GB.
- Your own server + Ployz$7/mo
Smallest Hetzner CX23/CX33/CX43/CX53 with that RAM (1 GB added for the OS) and twice the database on disk and $0.60 IPv4. Ployz is free on any number of servers.
The per-platform maths, with every source, is in Heroku pricing, Render pricing, Railway pricing and Fly.io pricing. Server prices are Hetzner's in Europe. In the US, a DigitalOcean Droplet or Netcup's Manassas datacenter is the cheap option; see Hetzner vs DigitalOcean.
Everything a Django app needs, on one server.
A Django app is four or five processes that all want memory: Gunicorn, Celery, beat, Postgres and Redis. Platforms price each one separately. On a server they share the RAM.
| What you need | Heroku, Render, Railway, Fly.io | Ployz on your server |
|---|---|---|
| Builds | Buildpacks, Railpack or your Dockerfile, depending on the platform | No Dockerfile needed for Python (Railpack finds manage.py and starts Gunicorn; pip, Poetry, uv, PDM and Pipenv), or bring your own Dockerfile |
| Web and worker | A dyno, service or Machine per process, each with its own price | One service for Gunicorn, one for `celery -A proj worker`, sharing the server's RAM |
| Celery beat | Another dyno, worker or Machine | Its own service running `celery -A proj beat`, with one replica |
| Postgres and Redis | Managed add-ons, from $5 to $38 for the smallest Postgres | One-click Postgres and Redis on your server, with a restore point for each |
| Migrations | Release phase, pre-deploy or release command | A pre-deploy command, `python manage.py migrate --noinput`, runs before each deploy |
| Previews per PR | Review apps or PR environments, billed per service; Render needs Pro, Fly has none built in | A preview environment for every pull request, with its own HTTPS address, on your servers |
| Zero-downtime deploys | Yes, on most plans | With a health check set, the new version must pass it before the old one stops. Postgres and Redis have a short gap instead |
| Price | Per process, per add-on, per GB | Your server. Ployz is free on any number of servers, custom domains included |
Static files. Django's deployment checklist says that in production you set STATIC_ROOT, where collectstatic copies your files. Run python manage.py collectstatic --noinput in the build, in your Dockerfile, so the files ship inside the image, and serve them with WhiteNoise. Don't put it in the pre-deploy command: that's for work against the database. While you're there, run python manage.py check --deploy against your production settings; it catches DEBUG = True, a missing ALLOWED_HOSTS and an insecure SECRET_KEY.
Why beat gets its own service. Celery beat is your scheduler. Celery's docs say only one beat may run per schedule, "otherwise you'd end up with duplicate tasks", and they don't recommend embedding it in a worker with -B for production. So run beat as its own service with one replica, and scale the workers freely.
What works differently.
Here's what changes when you leave a managed platform:
- Your coding agent runs it. Paste one line into Claude Code, Codex or Cursor and it installs Ployz, adds your server and ships the repo. Every deploy, restart or delete your agent asks for waits for you to approve, and no setting turns that off.
- Backups. Managed Postgres backs itself up. Ployz keeps a restore point for every database, so you can restore it, or move the database to another server with seconds of downtime (how, in the docs).
- Monitoring. Metrics for Gunicorn, Celery and every server and searchable logs come with Ployz, in the same dashboard as your deploys.
- An agent to ask. The Ployz agent in the dashboard answers questions about your app and can restart a stuck Celery worker for you.
If you'd rather stay on a hosted platform, Railway alternatives, ranked by price compares the options.
From repo to running app.
Run this from your Django project's directory, the one with manage.py. Ployz installs itself on the server, builds the app and gives it an HTTPS address.
$ curl -fsSL https://ployz.sh | sh
Installs the ployz CLI on macOS or Linux.
$ ployz login
Signs in to Ployz Cloud in your browser.
$ ployz up --server root@your-server
Installs Ployz on the server, builds this directory and gives it an HTTPS address.
Or paste Read ployz.dev/agents.md and deploy this repo to my server. into your coding agent and it runs these steps for you. Then add Postgres and Redis from the dashboard, set DATABASE_URL (as a reference to Postgres), SECRET_KEY and ALLOWED_HOSTS as variables and secrets, add the migrate pre-deploy command, and add services for the Celery worker and beat. Coming from Heroku, the migration steps cover copying the database.
Questions
Where is the best place to host a Django app?
For the lowest bill, a server you rent: a 4 GB server runs Gunicorn, Celery, Postgres and Redis for about $7 a month at Hetzner (Europe) or €8.26 incl. VAT at Netcup. If you never want to touch a server, Render or Railway are the closest to Heroku.
How do I deploy Django to a VPS?
Run Gunicorn behind a reverse proxy with HTTPS, Postgres next to it, migrations before each deploy and collectstatic in the build. With Ployz, ployz up --server root@your-server does the server setup, build and HTTPS; you add Postgres and the pre-deploy command.
Is there a free way to host Django?
Not for production. Heroku ended free plans in 2022, Render's free Postgres expires after 30 days, and Fly.io has no free tier. Ployz is free on your own servers, so the cheapest real option is a server for about $7 a month.
How do I run Celery on my own server?
Add Redis as the broker, then one service for the worker (celery -A proj worker) and one for beat (celery -A proj beat) if you have periodic tasks. Keep beat at one replica; workers can scale.
How do I run scheduled tasks for Django on Ployz?
Run Celery beat as its own service with one replica, and put your periodic tasks in its schedule.
Can my coding agent deploy my Django app?
Yes. Paste "Read ployz.dev/agents.md and deploy this repo to my server." into Claude Code, Codex or Cursor. It installs the CLI, registers ployz mcp and deploys. Every deploy, restart or delete your agent asks for waits for you to approve, and no setting turns that off.
What does Ployz cost?
Nothing, on any number of servers, with unlimited projects, preview environments, custom domains and members, and the dashboard is hosted for you. You pay your server provider for the servers.
Your servers. The whole platform. Free on your own servers.
Deploy your appFacts checked 2026-11-16.