]> git.parisson.com Git - telemeta.git/commitdiff
Enable toolbar when debug is True
authormathieu <mathieu.boye28@gmail.com>
Fri, 10 Jun 2016 16:14:08 +0000 (18:14 +0200)
committermathieu <mathieu.boye28@gmail.com>
Fri, 10 Jun 2016 16:14:08 +0000 (18:14 +0200)
app/settings.py

index fee99019b1bc138af5d11271f287cd1f20a1cf2c..762764eb87e00c993237039dca832c36fe53dafe 100644 (file)
@@ -241,10 +241,10 @@ PAGINATION_SETTINGS = {
     'PAGE_RANGE_DISPLAYED': 10,
     'MARGIN_PAGES_DISPLAYED': 2,
 }
-
-DEBUG_TOOLBAR_CONFIG = {
-    'SHOW_TOOLBAR_CALLBACK': lambda x : True
-}
+if DEBUG:
+    DEBUG_TOOLBAR_CONFIG = {
+        'SHOW_TOOLBAR_CALLBACK': lambda x : True
+    }
 DEBUG_TOOLBAR_PATCH_SETTINGS = False
 DEBUG_TOOLBAR_PANELS = [
     'debug_toolbar.panels.versions.VersionsPanel',