I've run into a roadblock here and the Django docs and previous stack overflow questions aren't helping. I've read over the static files section in the docs and I seem to be doing the right thing with django.contrib.staticfiles
.
So I'm trying to display my static files, and I'm a little bit baffled to what I'm doing wrong. When I go to my localhost:8000/static/
site, I get a 404 error with a "Directory indexes are not allowed here." message. I've set my STATIC_URL' = '/static/'
, I have a static directory with my files located inside of my my newsletter
app which is present under the INSTALLED_APPS
setting. I've even tried putting the full path in the STATICFILES_DIR
setting and that doesn't work.
I've seen people try to modify the STATIC_ROOT
setting but, correct me if I'm wrong, I thought this is bad practice on a dev server. Any leads? Thank you.