1👍
✅
You have not followed the tutorial. For some reason you have put your static files inside your template directory; that’s not where they belong. They need to be in a static directory, directly inside the app.
0👍
You can remove static folder in templates in put it on root tree e.g.:pwash/static or setting it in your settings.
Something like:
STATICFILES_DIRS = (
os.path.join(BASE_DIR, 'templates/pwash/static')
)
With a little care on which os you use…In Windows is \ instead of / in linux.
- How to return JSON Response correctly in joining multiple table in Django
- Invalid distinct with django
- Are these VirtualHost settings workable with Django?
- Is it possible to add a new function to the class based view of django rest framework
Source:stackexchange.com