Django 5 LTS on Ubuntu 24.04 by cloudimg

Applications

Overview

Django 5.2 LTS on Ubuntu 24.04 LTS. Python 3.12 venv, gunicorn 23, nginx, PostgreSQL 16, cloudimg starter project with per VM admin password. BSD 3 Clause.

Description

## Django 5 LTS on Ubuntu 24.04 by cloudimg

Pre configured Django 5.2.13 (the current LTS, supported through April 2028) on Ubuntu 24.04 LTS, purpose built for Microsoft Azure and maintained by cloudimg. Production stack with gunicorn as the WSGI app server, nginx as reverse proxy and static file server, and PostgreSQL 16 as the default database. Ships with a cloudimg starter project pre bound to a per VM database, per VM SECRET_KEY, and a non interactive Django superuser already created at first boot so the admin UI is reachable in seconds.

Why Choose cloudimg?

* 24/7 Expert Support Guaranteed 24 hour response, one hour average for critical issues. support@cloudimg.co.uk

* Production Ready from Launch Pre configured, security patched, validated

* Azure Native Integration Azure Linux Agent, cloud init, Gen2 Hyper V with UEFI boot

* Per VM Auth Wall SECRET_KEY (50 chars), DB password (32 hex), and Django superuser password (32 hex) all rotated at first boot, written to /stage/scripts/django-credentials.log mode 0600 root only

What is Included

* Django 5.2.13 from PyPI installed in a Python 3.12 virtualenv at /opt/django/venv (BSD 3 Clause)

* Python 3.12 from Ubuntu noble main

* gunicorn 23.0 as WSGI app server, 3 workers by default, bound to a Unix socket at /run/gunicorn/cloudimg.sock

* nginx as reverse proxy and static asset server on TCP 80

* PostgreSQL 16 from Ubuntu noble main, pre provisioned with a cloudimg role and database

* psycopg 3.2 binary + pool extras

* Pre created cloudimg starter project at /opt/django/cloudimg with a `core` app so the admin UI is populated

* DEBUG False, ALLOWED_HOSTS auto populated with the public IP at first boot, CSRF_TRUSTED_ORIGINS derived from ALLOWED_HOSTS

* Django superuser cloudimg pre created via createsuperuser noninteractive at first boot

* Three systemd units (gunicorn.service, django firstboot.service, plus the standard nginx.service and postgresql.service)

* Static files collected at first boot to /opt/django/cloudimg/static and served by nginx with 30 day expires

* Ubuntu 24.04 LTS base with latest security patches at build time

Use Cases

* Internal Django applications and admin panels

* SaaS backends behind a load balancer or Azure Application Gateway

* CRUD APIs with the Django REST Framework

* Content management with the Django admin and third party CMS apps

* Migration target for legacy Django 3 or Django 4 applications onto an LTS stack

Getting Started

1. Deploy from the Azure Marketplace

2. SSH as azureuser, sudo cat /stage/scripts/django-credentials.log for the URL and admin password

3. Browse to http://your-public-ip/admin/ and log in as cloudimg

4. Restrict NSG inbound on 80 to trusted IPs

5. Drop your Django app into /opt/django/cloudimg or replace the starter project with your own

6. Tune /etc/django/cloudimg.env for SECRET_KEY, ALLOWED_HOSTS, DB credentials, GUNICORN_WORKERS

Technical Specifications

* Django 5.2.13 LTS (supported through April 2028)

* Ubuntu 24.04 LTS (Noble Numbat)

* Python 3.12 in venv at /opt/django/venv

* gunicorn 23.0 (3 workers, Unix socket)

* PostgreSQL 16, role cloudimg, db cloudimg

* nginx reverse proxy + static + media

* Project root: /opt/django/cloudimg

* Service: systemd (gunicorn.service, nginx.service, postgresql.service, django firstboot.service)

* Recommended Size: Standard_B2s

* VM Generation: Hyper V Gen2 with UEFI boot

Support

cloudimg provides 24/7/365 expert technical support. Contact support@cloudimg.co.uk.

Visit www.cloudimg.co.uk/guides/django-5-on-ubuntu-24-04-azure for the full user guide.

Django is a registered trademark of the Django Software Foundation. This image is a repackaged upstream distribution provided by cloudimg. Additional charges apply for build, maintenance, and 24/7 support.

Related Technologies

Django Python WSGI gunicorn nginx PostgreSQL LTS Azure Ubuntu cloudimg

Deploy on Azure

Launch this pre-configured VM on Azure with 24/7 support from cloudimg.

View on Azure Marketplace

24/7 Support Included

Email: support@cloudimg.co.uk

Phone: (+44) 0333 006 4730

Product Details

Category
Applications
Support
24/7, 365 days/year
Platform
Microsoft Azure
Last Updated
2026-05-04