---
title: "Best Django hosting in 2026: 7 options compared, with PostgreSQL"
url: https://while.sh/en/comparisons/django-hosting/
author: "Grégoire Mougeolle, co-founder of Nextmap"
updated: 2026-11-19
---

# The best Django hosting in 2026

Your Django app works locally. To take it to production with its PostgreSQL database, with no server to maintain, seven hosts compete, from free for learning to certified for health data. We compared them in November 2026.

A Django app can go to production almost anywhere Python runs, but **not every host is equal for Django**: you need a PostgreSQL database, migrations applied at each version, static files served, and a production configuration that follows Django's deployment checklist (source 10). We compared seven Django hosting options, from free for learning to certified for health data.

> **Our verdict.** For a Django app your AI takes to production, while. It is set up according to Django's deployment checklist and billed by the second, with no subscription. Its database is backed up every day in France. PythonAnywhere only to learn Django in your browser, and Scalingo for health data or SecNumCloud.

## The 7 Django hosting options at a glance

| Host | Smallest server | Free plan | PostgreSQL database | Closest to France |
|---|---|---|---|---|
| while | See [pricing](/en/pricing/) | A trial with no sign-up, the Libre plan | With the app, backed up every day | In France |
| Heroku | Basic at $7 per month | None | Essential-0 at $5 per month | Europe |
| Render | $7 per month, 512 MB | A service that sleeps | From $6 per month | Frankfurt |
| Railway | Hobby at $5 per month, with $5 of usage | $1 of credit per month after the trial | On request | Amsterdam |
| PythonAnywhere | Developer at $10 per month | Beginner, one app | An option on Custom, MySQL included | Not stated |
| Scalingo | €7.20 excl. VAT for 30 days, 256 MB | A free start at sign-up | Starter at €7.20 excl. VAT | Paris |
| Clever Cloud | €4.50 for 30 days, 256 MB | Credits at sign-up | Free for development, dedicated at €5.25 | Paris |

Each host's facts come from its pricing page and documentation, cited as sources.

## Hosting Django for free, and its limits

**PythonAnywhere** is the classic starting point to learn Django: the Beginner plan is free, with one app at a pythonanywhere.com address and 100 CPU-seconds per day (source 6). **Render** has a free web service, which sleeps after 15 minutes without traffic, and a free Postgres database that expires after 30 days (source 4). **Railway** gives $1 of credit per month after the trial (source 5), and Clever Cloud credits at sign-up, with a free development PostgreSQL database, shared and without backups (source 8).

For a school project or a demo, these plans are enough. For an app whose data matters, the sleep and the expiring database are a problem, and a small paid plan becomes necessary.

## A Django app and its database, cheap

A Django app does not live without its database, and the database often sets the price. At **Heroku**, a Basic dyno costs $7 per month and an Essential-0 database $5, about $12 (sources 1 and 2). At **Render**, $7 for 512 MB and $6 for the first paid database, $13 (source 3). At **Clever Cloud**, €4.50 on pico and €5.25 for the first dedicated database, under €10 (source 8).

**PythonAnywhere Developer** costs $10 per month for one app on your domain and 5,000 CPU-seconds per day, with MySQL included, and a Postgres server as an option on the Custom plan (source 6).

<figure class="illus"><img src="/illustrations/django-prod-1200.webp" srcset="/illustrations/django-prod-768.webp 768w, /illustrations/django-prod-1200.webp 1200w" sizes="(min-width: 48rem) 46rem, 100vw" width="1536" height="1024" loading="lazy" decoding="async" alt="Deploy a Django app to production with its PostgreSQL database: Django's deployment checklist set by the AI, DEBUG off, SECRET_KEY and ALLOWED_HOSTS read from the environment, migrations applied and static files served, then Django hosting in France on while" /><figcaption>Django's checklist, migrations and static files, handled before every start.</figcaption></figure>

## while, your Django app in production by your AI

**We built while for the apps your AI takes to production.** Claude Code, Cursor or Codex connects to while over MCP, with OAuth. Your Django app is detected and installed from `requirements.txt`, with no Dockerfile, and your AI sets it up for production per Django's checklist: `DEBUG` off, `SECRET_KEY` and `ALLOWED_HOSTS` read from the environment, the database read from `DATABASE_URL`, static files served by WhiteNoise and the app served by gunicorn.

> You, to your AI: Put my Django app in production on while, with its PostgreSQL database, and apply migrations at every start.

- **Migrations and static files run before every start**, through a Procfile your AI adds.
- **Your AI reads the database in SQL**, with your rights on the data, without being able to write to it.
- **What matters waits for a person**, a production release, deleting a database, an outside API, an access.
- **The database is backed up every day**, with a way back over 14 days, and everything runs in France, at Nextmap.

For the step by step, follow [our guide for a Django app and its PostgreSQL database](/en/guides/deploy-django/).

**Who it is for:** a Django app your AI takes all the way to production, with its data in France.

## Heroku, a Django classic

Heroku is a classic for Django. It runs your Python code on dynos, from $5 on Eco, which sleeps, to $25 on Standard-1X per month (source 1), with a Europe region.

**Who it is for:** a Django app already on Heroku that must keep running unchanged.

## Render, to start for free

Render takes a Django app to production from a Git repository, free with the sleep, then $7 per month for 512 MB (sources 3 and 4). Its closest region is Frankfurt.

**Who it is for:** trying for free, then moving to a small paid instance.

## Railway, in a few minutes

Railway takes a Git repository to production and creates a PostgreSQL database on request, at $5 per month on Hobby with $5 of usage included (source 5). Its closest region is Amsterdam.

**Who it is for:** a small project that wants to pay for what it uses.

## PythonAnywhere, to learn Django

PythonAnywhere puts a complete Python environment in the browser, with consoles and Jupyter, and its free plan is enough for a first Django site (source 6). The Developer plan runs a single web app.

**Who it is for:** learning Django, or a small personal site.

## Scalingo, for compliance in France

Scalingo runs your apps in Paris, at €7.20 excl. VAT for 30 days and 256 MB, and €7.20 excl. VAT for the first Starter database. It is HDS certified on a Business or Enterprise plan with at least two containers, and opens a SecNumCloud region on request (source 7).

**Who it is for:** a Django app that handles health data, or requires SecNumCloud.

## Clever Cloud, a French host billed by the second

Clever Cloud runs your Python apps in its French zones, from €4.50 on pico to €16 on XS for 1 GB, billed by the second (source 8). It is ISO 27001 and HDS certified (source 9).

**Who it is for:** a technical team that wants to tune each instance, in France.

## Which one to choose

| Your situation | Our pick |
|---|---|
| Pay by the second for what runs, with no subscription | while |
| A preview per branch, with its own data | while |
| The team signed in with their email account, a client with a password | while |
| Your AI takes the app to production, in France | while |
| Learning Django for free | PythonAnywhere |
| Health data, SecNumCloud | Scalingo |

For an API without templates, read [the best hosting for a Python API](/en/comparisons/python-api-hosting/), for the database alone, [PostgreSQL hosting](/en/comparisons/managed-postgresql-hosting/), and for PythonAnywhere in detail, [PythonAnywhere or while](/en/comparisons/while-vs-pythonanywhere/). To try while, give this message to your AI. The trial is **free, with no sign-up**, and your app has its address **in 3 minutes**.

```text titre="The message to give your AI"
Read while.sh/agents and help me get started with while.
```

## How we chose

On November 19, 2026, we read the pricing pages and documentation of Heroku, Render, Railway, PythonAnywhere, Scalingo and Clever Cloud, and Django's deployment checklist, cited as sources, reusing our November 18 reading for Clever Cloud's prices. Prices are for each host's smallest size, in dollars or euros as they display them. We use while every day, and we compared the seven hosts on price, free plan, PostgreSQL database and region.

## Sources

1. [Heroku, Pricing](https://www.heroku.com/pricing), 2026-11-19
2. [Heroku, Heroku Postgres plans](https://devcenter.heroku.com/articles/heroku-postgres-plans), 2026-11-19
3. [Render, Pricing](https://render.com/pricing), 2026-11-19
4. [Render, Deploy for free](https://render.com/docs/free), 2026-11-19
5. [Railway, Pricing](https://railway.com/pricing), 2026-11-19
6. [PythonAnywhere, Plans and pricing](https://www.pythonanywhere.com/pricing/), 2026-11-19
7. [Scalingo, Pricing](https://scalingo.com/fr/pricing), 2026-11-19
8. [Clever Cloud, Pricing and estimator](https://www.clever-cloud.com/fr/pricing/), 2026-11-18
9. [Clever Cloud, Security and certifications](https://www.clever-cloud.com/fr/securite/), 2026-11-19
10. [Django, Deployment checklist](https://docs.djangoproject.com/en/stable/howto/deployment/checklist/), 2026-11-19

## Questions

### Where to host a Django app for free?

PythonAnywhere Beginner is free, with one app at a pythonanywhere.com address and 100 CPU-seconds per day (source 6). Render has a free web service that sleeps after 15 minutes without traffic, and a free database that expires after 30 days (source 4). On while, the trial is free with no sign-up, and the Libre plan has no subscription.

### How much does a Django app with its PostgreSQL database cost?

About $12 per month at Heroku, with a $7 Basic dyno and a $5 Essential-0 database (sources 1 and 2), $13 at Render (source 3), and under €10 at Clever Cloud (source 8).

### Which Django hosting in Europe, or in France?

Scalingo and Clever Cloud run your apps in France, and while hosts your apps and their data in France, at Nextmap. Heroku offers a Europe region, Render Frankfurt and Railway Amsterdam.

### Do I need a Dockerfile for Django?

No, at most hosts. On while, your app is detected, installed from requirements.txt and served by gunicorn, with no Dockerfile.

### Are my migrations applied?

On while, yes: your AI adds a Procfile that applies migrations and collects static files before every start.

### Which Django hosting for health data?

Scalingo, HDS certified on a Business or Enterprise plan with at least two containers (source 7), or Clever Cloud, ISO 27001 and HDS certified (source 9).
