Kick off a software project quickly.

Django Stack

Production-ready Python environment — Django, Gunicorn, Nginx, PostgreSQL 16.

2 GB RAM 1 vCPU In validation

In validation

Automatic installation for this solution is ready and currently going through our tests on a real server. Ordering will open as soon as validation is complete.

Tech stack

Python 3.12GunicornNginxPostgreSQL 16pipvirtualenv
Minimum RAM2 GB
Minimum CPU1 vCPU
Compatible OSChoice of Linux distributions

Django Stack provisions your VPS with everything a Django application needs in production: Python 3.12 (deadsnakes PPA), Gunicorn as the WSGI server, Nginx as the reverse proxy, and PostgreSQL 16 as the database. No manual package configuration, no buildpack constraints — clone your repository, run your migrations, and your application is live.

Python 3.12 delivers 30–60 % faster request cycles than 3.10 on typical Django workloads. Gunicorn's pre-fork worker model handles concurrent requests with a predictable memory footprint — start with 3 workers, scale up as traffic grows. Nginx manages static-file serving, gzip compression and HTTPS termination without container overhead. PostgreSQL 16 gives you JSONB columns, full-text search, and the query planner improvements that make Django ORM queries fast at scale.

The stack is designed for real projects: Celery workers and Redis can be added to the same VPS, Supervisor keeps them alive after reboot, and virtualenv isolates your project's dependencies from the system Python. Deploy the same setup across every environment and never hit a "works on my machine" moment.

Key features

Python 3.12 from the deadsnakes PPA — latest stable release, 30–60 % faster than 3.10 on typical Django workloads.
Gunicorn WSGI server with pre-fork workers — production-grade, configurable worker count, predictable memory usage.
Nginx reverse proxy — static file serving, gzip compression, HTTPS termination, security headers out of the box.
PostgreSQL 16 — JSONB, full-text search, advanced query planner; the first-class Django database.
pip and virtualenv — dependency isolation and reproducible installs per project.
Supervisor-ready — add a Supervisor config to keep Gunicorn and Celery workers alive after reboots.
Redis-ready — install Redis in one command to unlock Celery task queues and Django cache backend.

When to use this solution?

1

Django web application

Deploy an existing Django project: clone your repository into /var/www/your-app, create a virtualenv, run pip install, collectstatic, and migrate. Gunicorn starts with your wsgi.py and Nginx proxies ports 80/443 to it — SSL via Let's Encrypt is a single certbot command.

2

REST API with Django REST Framework

Host a DRF API backend for a mobile app or SPA frontend. Nginx handles CORS headers and rate limiting. Add Redis and Celery on the same VPS for async tasks without changing the deployment model.

3

SaaS prototype to production

Start your SaaS project locally, deploy to this stack in minutes. Add Celery for background jobs, Redis for caching, and PostgreSQL LISTEN/NOTIFY for real-time features — all on a single 2 GB VPS until traffic justifies splitting services.

Deploy Django Stack on your VPS

Guide optimized for ServOrbit Cloud VPS.

01

Order a ServOrbit VPS

A 2 GB RAM VPS on Ubuntu 24.04 is the minimum for Django with PostgreSQL. Choose 4 GB if you plan to run Celery workers or a loaded Redis cache. The Django Stack template is available in the marketplace order form.

02

Deploy from the marketplace

Go to Marketplace → Development → Django Stack and click Deploy. The provisioning script installs Python 3.12, Gunicorn, Nginx, and PostgreSQL 16 — no manual SSH session required for the base setup.

03

Clone your project and configure

SSH into the VPS, clone your repository into /var/www/your-project, create a virtualenv (python3.12 -m venv venv), install dependencies (pip install -r requirements.txt), and create a .env file with SECRET_KEY, DATABASE_URL, ALLOWED_HOSTS, and DEBUG=False.

04

Run migrations and collect static files

Activate the virtualenv and run python manage.py migrate then python manage.py collectstatic --noinput. The Nginx configuration already maps /static/ and /media/ to the correct directories.

05

Start Gunicorn and enable HTTPS

Start Gunicorn with gunicorn your_project.wsgi:application --bind 127.0.0.1:8000 --workers 3 (or use the provided Supervisor config to keep it alive after reboots). Run certbot --nginx -d your-domain.com to get a free Let's Encrypt certificate.

Frequently asked questions

Python 3.12 from the deadsnakes PPA. You can install other versions alongside it with sudo add-apt-repository ppa:deadsnakes/ppa && apt install python3.X. virtualenv lets you use any installed version for your project independently.

Kick off a software project quickly.

Django Stack isn't orderable yet.

Automatic installation for this solution is ready and currently going through our tests on a real server. Ordering will open as soon as validation is complete.

Need help?

Browse our help center and FAQ, or reach our team — callback, WhatsApp or email. Support in French, English and Arabic.