no default static subdirectory search in project package
|Reported by:||anonymous||Owned by:||nobody|
|Severity:||Normal||Keywords:||settings, templates, staticfiles|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
The default will find files stored in the STATICFILES_DIRS setting ... and in a static subdirectory of each app ...
I found out that this does not include the project's package. Working my way through the tutorials I expected dedicated apps (such as polls) and the projects package (such as mysite) to behave no different. That is Django searches for static files in polls/static/ and in mysite/static/.
That is not the case, though, and is highly unexpected for two reasons:
- Writing code as an app is optional (at least that's what remained after reading the tutorial). Why exclude the mandatory (project) from the rule?
- General behaviour goes in the app folder, custom settings go into the project folder. Templates and static files like CSS fall into the later category. Why exclude the intended location from the default search? Why must I change the defaults to support the major case?
On the other hand if there is a deeper meaning in the directory structure you failed to explain it throughout the tutorial.