Deployment

Deployment puts the Django application online on an application server (Gunicorn, uvicorn) placed behind a web server such as Nginx. It involves collecting static files (collectstatic), applying migrations, configuring the environment through variables and serving over HTTPS. Media and static files are not served by Django itself.

Example

python manage.py collectstatic --noinput
gunicorn config.wsgi:application

Related concepts

The whole glossary