This guide explains how to deploy a Django application on Ubuntu using Gunicorn, Nginx, and Microsoft SQL Server.
All project names, passwords, and paths below use safe placeholders — replace them with your real values when deploying.
Ubuntu Server 18.04 / 20.04 / 22.04 / 24.04
Sudo access
Django project uploaded to the server
Domain name (optional, required for HTTPS)
Define your variables:
Check status:
Install backend drivers:
Edit settings.py:
Run migrations:
Create service file:
Enable service:
Create config:
Enable site and restart Nginx:
Get the latest news and updates by signing up to our daily newsletter.We won't sell your email or spam you !