Browse Source

#1033: Disable the debug toolbar templates panel by default due to a performance issue under Django 1.11

Jeremy Stretch 8 years ago
parent
commit
1dcb0b52e2
1 changed files with 8 additions and 0 deletions
  1. 8 0
      netbox/netbox/settings.py

+ 8 - 0
netbox/netbox/settings.py

@@ -218,6 +218,14 @@ REST_FRAMEWORK = {
 }
 }
 
 
 # Django debug toolbar
 # Django debug toolbar
+# Disable the templates panel by default due to a performance issue in Django 1.11; see
+# https://github.com/jazzband/django-debug-toolbar/issues/910
+DEBUG_TOOLBAR_CONFIG = {
+    'DISABLE_PANELS': [
+        'debug_toolbar.panels.redirects.RedirectsPanel',
+        'debug_toolbar.panels.templates.TemplatesPanel',
+    ],
+}
 INTERNAL_IPS = (
 INTERNAL_IPS = (
     '127.0.0.1',
     '127.0.0.1',
     '::1',
     '::1',