8000 Bad reference to DEBUG (fixes GH-63) · dcramer/django-devserver@69c8689 · GitHub
[go: up one dir, main page]

Skip to content

Commit 69c8689

Browse files
committed
Bad reference to DEBUG (fixes GH-63)
1 parent 2c37317 commit 69c8689

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

devserver/modules/sql.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
connections = {'default': connection}
1414

1515
from django.db.backends import util
16+
from django.conf import settings as django_settings
1617
#from django.template import Node
1718

1819
from devserver.modules import DevServerModule
@@ -83,7 +84,7 @@ def execute(self, sql, params=()):
8384
if self.cursor.rowcount >= 0:
8485
self.logger.debug('Found %s matching rows', self.cursor.rowcount, duration=duration)
8586

86-
if not (debug_toolbar or settings.DEBUG):
87+
if not (debug_toolbar or django_settings.DEBUG):
8788
self.db.queries.append({
8889
'sql': formatted_sql,
8990
'time': duration,

0 commit comments

Comments
 (0)
0