Django, Gunicorn and Nginx are not installed automatically: you start from a clean Debian 12 system and follow these steps. The framework is free and open source, no license is needed.
Choose the resources of your VPS
Django runs on all our Linux VPS plans: you only pay for the VPS.
With your consent, we measure which ads bring us customers and how the site is used. Without it, nothing is measured and the site works exactly the same. You can change your mind at any time. Cookie policy.
Deploy a Django app on a Debian 12 VPS: Python virtualenv, Gunicorn, Nginx, PostgreSQL or SQLite and HTTPS, explained step by step.
A Debian 12 VPS with root access to run Django behind Gunicorn and Nginx. You install the stack yourself; this guide gives you the order of the steps.
Step-by-step procedure
Order the VPS and connect
Order a VPS Mini with Debian 12, then connect over SSH as root with your key. Update the system before installing anything else.
Install Python, Nginx and PostgreSQL
Install the required Debian packages. PostgreSQL is optional: SQLite is enough for a small site with few database writes.
Create the virtual environment
Put the project in its own folder, create a virtual environment and install Django, Gunicorn and the PostgreSQL driver. On Debian 12, pip picks a Django release that supports Python 3.11.
Prepare the project and test Gunicorn
In settings.py, set ALLOWED_HOSTS, DEBUG = False and STATIC_ROOT. Run the migrations and collectstatic, test Gunicorn on local port 8000, then create a systemd service to start it at boot.
Publish with Nginx and HTTPS
Create an Nginx server block that serves /static/ from STATIC_ROOT and passes everything else to 127.0.0.1:8000 with proxy_pass. Once DNS is set, Certbot adds HTTPS.
Choose the resources of your VPS
Django runs on all our Linux VPS plans: you only pay for the VPS.
Recommended base: Debian 12
VPS Mini: €3.99 per month incl. VAT with a 1-year term (or €4.99 per month with no commitment) · 2 vCPU · 8 GB RAM · 40 GB storage
VPS Essentiel: €7.99 per month incl. VAT with a 1-year term (or €9.99 per month with no commitment) · 4 vCPU · 16 GB RAM · 80 GB storage
VPS Performance: €17.59 per month incl. VAT with a 1-year term (or €21.99 per month with no commitment) · 8 vCPU · 48 GB RAM · 150 GB storage
VPS Pro: €27.99 per month incl. VAT with a 1-year term (or €34.99 per month with no commitment) · 12 vCPU · 64 GB RAM · 250 GB storage
Why run Django on a VPS?
Django is a free web framework written in Python and released under the BSD license. It ships with an ORM, database migrations, an admin interface generated from your models, authentication and form handling. People use it for publishing sites, internal tools and REST APIs built with Django REST framework. The code stays yours and does not depend on any paid service.
The runserver development server is not meant for production. On a VPS, the application sits behind Gunicorn, a WSGI server, and Nginx, which serves static files and handles HTTPS. You choose the database, scheduled jobs and background workers, without the limits of shared hosting or a platform that bills you for every process.
Root access for the whole Python stack
Install the system packages your dependencies need, such as libpq or image libraries, and manage the virtual environment the way you want.
Dedicated resources
The 2 vCPU and 8 GB of RAM of the VPS Mini are reserved for you: Gunicorn workers, PostgreSQL and Celery do not share the machine with other sites.
Dedicated IPv4 and HTTPS certificate
Your domain points to the public IPv4 of the VPS. Certbot gets a Let’s Encrypt certificate for Nginx in two commands and renews it automatically afterwards.
Backup before every migration
Start a backup from the panel before a risky migrate or a Django upgrade, then restore it if something goes wrong.
Before you start
Good to know: Django, Gunicorn and Nginx are not installed automatically: you start from a clean Debian 12 system and follow these steps. The framework is free and open source, no license is needed.
Debian 12 (system Python 3.11)
VPS Mini (2 vCPU, 8 GB RAM) to start
A domain name pointing to the VPS IPv4
Ports 22, 80 and 443 open
PostgreSQL or SQLite depending on write volume
An external SMTP service (port 587) for email
Install Django on your VPS
The main steps, to follow over SSH. The official documentation is the reference for the details.
Order the VPS and connect: Order a VPS Mini with Debian 12, then connect over SSH as root with your key. Update the system before installing anything else.
Install Python, Nginx and PostgreSQL: Install the required Debian packages. PostgreSQL is optional: SQLite is enough for a small site with few database writes.
Create the virtual environment: Put the project in its own folder, create a virtual environment and install Django, Gunicorn and the PostgreSQL driver. On Debian 12, pip picks a Django release that supports Python 3.11.
Prepare the project and test Gunicorn: In settings.py, set ALLOWED_HOSTS, DEBUG = False and STATIC_ROOT. Run the migrations and collectstatic, test Gunicorn on local port 8000, then create a systemd service to start it at boot.
Publish with Nginx and HTTPS: Create an Nginx server block that serves /static/ from STATIC_ROOT and passes everything else to 127.0.0.1:8000 with proxy_pass. Once DNS is set, Certbot adds HTTPS.
For which projects?
Publishing site with Django admin
REST API with DRF
Internal company tool
Mobile app backend
The essentials, included in every plan
No hidden extras for the essentials: protection, an IP address, a recovery console and support from real people are included from the first plan.
Anti-DDoS: Network protection is included on every service, with no paid option.
Dedicated IPv4: Each VPS has its own public address and full root access.
Recovery console: Take back control of your VPS with the noVNC console, even without SSH.
Support 7 days a week: By ticket and on Discord, from a team that knows your services.
No commitment: Monthly, cancellable at any time, or yearly to pay less.
Run Django on your own VPS.
Choose your resources, install, stay in control. No commitment.
Frequently asked questions
How do I install Django on a VPS?
Order a Debian 12 VPS, connect over SSH, install python3-venv, Nginx and optionally PostgreSQL, then create a virtual environment with Django and Gunicorn. Gunicorn serves the application on a local port, Nginx publishes it on your domain and Certbot adds HTTPS. A systemd service restarts Gunicorn every time the server boots.
Which plan should I pick for a Django project?
The VPS Mini (2 vCPU, 8 GB RAM, 40 GB storage) is enough for most Django sites with PostgreSQL on the same machine. If you add Celery, Redis and many Gunicorn workers, or if the database grows, move to the VPS Essential (4 vCPU, 16 GB). The Django documentation does not set any minimum hardware.
Is Django free?
Yes. Django is free software under the BSD license, like Gunicorn, Nginx and PostgreSQL. You only pay for the VPS. Some external services for sending email, object storage or monitoring can cost money, but none of them is required to run a Django application.
SQLite or PostgreSQL in production?
SQLite suits a site with few concurrent writes and makes backups simple, because the whole database is one file. PostgreSQL is the usual choice once several workers write at the same time, when you need full text search or when data volumes grow. Django supports both with the same code; only the DATABASES setting changes.
Which Django version runs on Debian 12?
Debian 12 ships Python 3.11. Django 5.2, a long term support release, accepts Python 3.10 to 3.13, while Django 6.0 requires Python 3.12 or newer. With the system Python, pip therefore installs the 5.2 branch. For Django 6, install a newer Python or pick a system that provides one, such as Ubuntu 24.04.