]> git.parisson.com Git - telemeta.git/commitdiff
Fix enable debug toolbar in dev
authormathieu <mathieu.boye28@gmail.com>
Fri, 10 Jun 2016 14:54:36 +0000 (16:54 +0200)
committermathieu <mathieu.boye28@gmail.com>
Fri, 10 Jun 2016 14:54:36 +0000 (16:54 +0200)
app/settings.py

index 1f4e860acaef91a258f327159442d2d9686b7e3e..fee99019b1bc138af5d11271f287cd1f20a1cf2c 100644 (file)
@@ -130,6 +130,7 @@ MIDDLEWARE_CLASSES = (
     'django.contrib.auth.middleware.AuthenticationMiddleware',
     'django.contrib.messages.middleware.MessageMiddleware',
     'django.middleware.locale.LocaleMiddleware',
+    'debug_toolbar.middleware.DebugToolbarMiddleware',
     # 'pagination.middleware.PaginationMiddleware',
 )
 
@@ -241,6 +242,9 @@ PAGINATION_SETTINGS = {
     'MARGIN_PAGES_DISPLAYED': 2,
 }
 
+DEBUG_TOOLBAR_CONFIG = {
+    'SHOW_TOOLBAR_CALLBACK': lambda x : True
+}
 DEBUG_TOOLBAR_PATCH_SETTINGS = False
 DEBUG_TOOLBAR_PANELS = [
     'debug_toolbar.panels.versions.VersionsPanel',