move debug_toolbar inclusion
@@ -142,12 +142,6 @@ INSTALLED_APPS = [
'c3nav.site',
'c3nav.editor',
]
-try:
- import debug_toolbar
-except ImportError:
- pass
-else:
- INSTALLED_APPS.append('debug_toolbar')
MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
@@ -160,11 +154,13 @@ MIDDLEWARE = [
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]
+
try:
import debug_toolbar
except ImportError:
pass
else:
+ INSTALLED_APPS.append('debug_toolbar')
MIDDLEWARE.append('debug_toolbar.middleware.DebugToolbarMiddleware')
try:
