1👍
It’s better to serve the static files through Nginx instead of django.
Do the following steps
- Collect static files
python manage.py collectstatic
- Update nginx config to serve the static files
location /static/ { root /path/to/staticfiles; }
It will work like below
Browser [request]--> Nginx [static files]
Source:stackexchange.com