Commit 42e4813c authored by fred's avatar fred

make it possible for local settings to add debug panels

parent 8dcf70b6
......@@ -199,6 +199,18 @@ LOGGING = {
STATSD_CLIENT = 'django_statsd.clients.null'
DEBUG_TOOLBAR_PANELS = (
'debug_toolbar.panels.version.VersionDebugPanel',
'debug_toolbar.panels.timer.TimerDebugPanel',
'debug_toolbar.panels.settings_vars.SettingsVarsDebugPanel',
'debug_toolbar.panels.headers.HeaderDebugPanel',
'debug_toolbar.panels.request_vars.RequestVarsDebugPanel',
'debug_toolbar.panels.sql.SQLDebugPanel',
'debug_toolbar.panels.template.TemplateDebugPanel',
'debug_toolbar.panels.signals.SignalDebugPanel',
'debug_toolbar.panels.logger.LoggingPanel',
)
try:
from local_settings import *
except ImportError, e:
......@@ -215,6 +227,9 @@ if DEBUG and DEBUG_TOOLBAR:
'INTERCEPT_REDIRECTS': False,
}
if 'template_timings_panel.panels.TemplateTimings.TemplateTimings' in DEBUG_TOOLBAR_PANELS:
INSTALLED_APPS += ('template_timings_panel',)
if ENABLE_PIWIK is False:
MIDDLEWARE_CLASSES = tuple([x for x in MIDDLEWARE_CLASSES \
if x != 'panikweb.middleware.StripPiwikCookieMiddleware'])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment