Closed vicalloy closed 11 years ago
What was the reason for this?
django-devserver / devserver / modules / sql.py line 82,105 if not (debug_toolbar or settings.DEBUG): I get a error.
I can confirm that I get this error too. See below for a link to my traceback.
+1 from me. It looks like this only arises where the Django Debug Toolbar is not available, or DatabaseStatTracker
is not defined in debug_toolbar.panels.sql
. See: https://github.com/dcramer/django-devserver/blob/master/devserver/modules/sql.py#L82
The short-circuit logic means that this won't raise an error if the DDT stuff works, but if it doesn't you'll get an attribute error, because it inspects settings.DEBUG
without realizing that settings
is devserver.settings
, not django.conf.settings
. Excuse my 3AM-English :)
fixed in 69c86890aa9fd3cdc58d2130a693d5c5cc48e5df
add devserver.settings.DEBUG