11👍
✅
Got the solution from a post
Added collectstatic
to Procfile
web: python manage.py collectstatic --no-input; gunicorn myapp.wsgi --log-file - --log-level debug
And now every static file is serving including, CSS, js, images and videos.
1👍
The Whitenoise middleware should come after the security middleware and before all other middleware. You are currently adding it to the end.
- [Django]-Where is documentation about the "parser" methods?
- [Django]-Django: Store Hierarchical Data
Source:stackexchange.com