[Fixed]-CSS not rendering in Django

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.

👤Fury45

Leave a comment