Move FileSystemFinder ImproperlyConfigured errors to system checks
FileSystemFinder currently checks for the following on __init__
:
- Whether STATICFILES_DIRS is a list or tuple, failing if it's not
- Whether STATICFILES_DIRS contains a directory equivalent to STATIC_ROOT
I'd like to suggest moving both of those checks to the Django system checks framework. As it is, they happen at runtime which delays when the error shows up.
Change History
(7)
Triage Stage: |
Unreviewed → Accepted
|
Owner: |
changed from nobody to Ling-Xiao Yang
|
Status: |
new → assigned
|
Patch needs improvement: |
set
|
Patch needs improvement: |
unset
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
PR