Deploying

Install requirements

Install the production requirements

pip install -r requirements.txt

If using Tailwind

npm ci

Compile project

To compile for production, run

python manage.py build

Collect statics

Collect asset files and static files in the STATIC_ROOT folder

python manage.py collectstatic

Serve statics

Configure the production server to serve the collected files inside STATIC_ROOT folder under the URL STATIC_URL.

See How to deploy static files guide to learn more.

Start server

Now start the production server using wsgi or asgi. Go to django How to deploy Django documentation to learn more.