Opened 14 years ago
Closed 14 years ago
#15394 closed (invalid)
Confused comment for STATICFILES_DIR on settings.py
Reported by: | Carlo Pires | Owned by: | nobody |
---|---|---|---|
Component: | Uncategorized | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Comment for STATICFILES_DIR on settings.py should be:
# Locations of static files
and not:
# Additional locations of static files
Change History (3)
comment:1 by , 14 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 by , 14 years ago
Resolution: | invalid |
---|---|
Status: | closed → reopened |
So I'm missing something here. Where would be my app static files if I dont put anything in STATICFILES_DIR ?
Using django version 1.3 beta 1 SVN-15634, and following http://docs.djangoproject.com/en/dev/howto/static-files/, my static files on
SITE_ROOT/static dir are not served when using runserver and adding staticfiles_urlpatterns to URLconf.
I had to put SITE_ROOT/static on STATICFILES_DIR to make staticfiles_urlpatterns to find them.
comment:3 by , 14 years ago
Resolution: | → invalid |
---|---|
Status: | reopened → closed |
Now I got it, each projects' app can have a static/ subdir which will be considered by staticfiles finder. Additional static files can be included in STATICFILES_DIR.
The comment is correct. It is *additional* locations, on top of those derived from individual apps.