---
title: "Django apps under gunicorn, with uv and safe migrations"
description: "In a Box runs Django 6.1 on gunicorn, watched by supervisord. Each site has its own Python from uv, and the database is dumped before a live migration."
url: https://in-a-box.online/webdev/sites/django/
---
1.  [In a Box](https://in-a-box.online/)
2.  [Kits](https://in-a-box.online/kits/)
3.  [WebDev (in a box)](https://in-a-box.online/webdev/)
4.  [Site stacks](https://in-a-box.online/webdev/sites/)
5.  [Django](https://in-a-box.online/webdev/sites/django/)

# Django, with a dump before every migration.

Each Django project gets its own Python, a database of its own and a process that is watched. Schema changes are rehearsed on a dev copy before the live data sees them.

![The Django logo on a dark Karkinos background.](https://in-a-box.online/img/stack-django.webp)

## Each project locks its own Python

The environment is made with uv inside the project. `manage.py`, the tests and migrations all run inside it, and a release build runs `uv sync --frozen` so the release matches what was locked. We tried Django 6.1.2 this way on 24 October 2026.

## Migrations rehearsed first

Before a migration touches live data, In a Box dumps the database and runs the migration on the copy. If one goes wrong it is rolled back from the dump, not repaired by hand.

## Served by gunicorn

supervisord looks after gunicorn and restarts it when it falls over. `collectstatic` gathers the static files for the web server to hand out. The database is PostgreSQL or MariaDB, one per site.

## Release dates to plan around

The long term release, Django 5.2, has security fixes to April 2028. Version 6.0 is covered to April 2027 and 6.1 to December 2027. From 2028 each feature release gets three years. The assistant clears deprecation warnings early so the next jump stays small.

## Admin pages and new models

Ask for a field on a booking form and you get the model, migration and admin change made on the copy, then a preview behind your login. Apps stay apps, so see the other [site stacks](https://in-a-box.online/webdev/sites/) only if yours is really a brochure.

MORE IN SITE STACKS

-   [Site stacks: the overview](https://in-a-box.online/webdev/sites/)
-   [Astro](https://in-a-box.online/webdev/sites/astro/)
-   [Craft CMS](https://in-a-box.online/webdev/sites/craft/)
-   [Drupal](https://in-a-box.online/webdev/sites/drupal/)
-   [Flask](https://in-a-box.online/webdev/sites/flask/)
-   [Joomla](https://in-a-box.online/webdev/sites/joomla/)
-   [Laravel](https://in-a-box.online/webdev/sites/laravel/)
-   [Next.js](https://in-a-box.online/webdev/sites/nextjs/)
-   [Plain PHP](https://in-a-box.online/webdev/sites/php/)
-   [Plain HTML](https://in-a-box.online/webdev/sites/plain-html/)
-   [Statamic](https://in-a-box.online/webdev/sites/statamic/)
-   [WordPress](https://in-a-box.online/webdev/sites/wordpress/)

## Run for you in the cloud, from £250 a month.

[See the plans](https://in-a-box.online/pricing/#plans)[Get in touch](https://in-a-box.online/contact/)
