From 1dcb0b52e26b004bbb39bf00659471096789b521 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Tue, 4 Apr 2017 13:44:55 -0400 Subject: [PATCH] #1033: Disable the debug toolbar templates panel by default due to a performance issue under Django 1.11 --- netbox/netbox/settings.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/netbox/netbox/settings.py b/netbox/netbox/settings.py index 4a486c434..9e7ff81ba 100644 --- a/netbox/netbox/settings.py +++ b/netbox/netbox/settings.py @@ -218,6 +218,14 @@ REST_FRAMEWORK = { } # 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 = ( '127.0.0.1', '::1',