Django + WSGI

Static files

Deployment

  1. Set STATIC_ROOT to the directory from which you want to serve collected static files:
STATIC_ROOT = "/var/www/example.com/static/"
  1. Collect static files into STATIC_ROOT:
python manage.py collectstatic

This copies all files from your app/static and other static locations into STATIC_ROOT. Serve the resulting files with your chosen web server (nginx, Apache, CDN, etc.).

References