Skip to content

Commit 83e8584

Browse files
authored
Merge pull request #553 from ucb-rit/disable_debug_toolbar
Disable Django Debug Toolbar panels by default
2 parents 0385884 + 2c5f044 commit 83e8584

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

bootstrap/ansible/settings_template.tmpl

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,22 @@ if DEBUG:
162162
hostname, _, ips = socket.gethostbyname_ex(socket.gethostname())
163163
INTERNAL_IPS = [ip[: ip.rfind('.')] + '.1' for ip in ips] + ['10.0.2.2']
164164

165+
DISABLE_PANELS = {
166+
'debug_toolbar.panels.history.HistoryPanel',
167+
'debug_toolbar.panels.versions.VersionsPanel',
168+
'debug_toolbar.panels.timer.TimerPanel',
169+
'debug_toolbar.panels.settings.SettingsPanel',
170+
'debug_toolbar.panels.headers.HeadersPanel',
171+
'debug_toolbar.panels.request.RequestPanel',
172+
'debug_toolbar.panels.sql.SQLPanel',
173+
'debug_toolbar.panels.staticfiles.StaticFilesPanel',
174+
'debug_toolbar.panels.templates.TemplatesPanel',
175+
'debug_toolbar.panels.cache.CachePanel',
176+
'debug_toolbar.panels.signals.SignalsPanel',
177+
'debug_toolbar.panels.redirects.RedirectsPanel',
178+
'debug_toolbar.panels.profiling.ProfilingPanel',
179+
}
180+
165181
#------------------------------------------------------------------------------
166182
# django-flags settings
167183
#------------------------------------------------------------------------------

0 commit comments

Comments
 (0)