@@ -162,6 +162,22 @@ if DEBUG:
162
162
hostname, _, ips = socket.gethostbyname_ex(socket.gethostname())
163
163
INTERNAL_IPS = [ip[: ip.rfind('.')] + '.1' for ip in ips] + ['10.0.2.2']
164
164
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
+
165
181
#------------------------------------------------------------------------------
166
182
# django-flags settings
167
183
#------------------------------------------------------------------------------
0 commit comments