Changeset 14293 broke static media serving when settings.DEBUG = True
|Reported by:||djm||Owned by:||nobody|
|Severity:||Keywords:||static, debug, serve|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Changeset 14293 brought in a new ImproperlyConfigured Exception to stop the use of the static serving method when running with DEBUG mode off.
However the logic is incorrect; Line 44 should read
if *not* settings.DEBUG: as this would check for when DEBUG is False and apply the exception.
Only a small one, will submit a patch in a sec.