Skip to content

Commit

Permalink
netbox-community#1033: Disable the debug toolbar templates panel by d…
Browse files Browse the repository at this point in the history
…efault due to a performance issue under Django 1.11
  • Loading branch information
jeremystretch committed Apr 4, 2017
1 parent 2af04d6 commit c3b86c3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions netbox/netbox/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,14 @@
}

# 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',
Expand Down

0 comments on commit c3b86c3

Please sign in to comment.