Skip to content
Snippets Groups Projects
Commit 91283a75 authored by Martin Burchell's avatar Martin Burchell
Browse files

Add debug toolbar template timings

parent ff5e4fd1
No related branches found
No related tags found
2 merge requests!124Staging,!121Add profiling tools
...@@ -31,6 +31,7 @@ python-dateutil = "*" ...@@ -31,6 +31,7 @@ python-dateutil = "*"
pytz = "*" pytz = "*"
rest-pandas = "*" rest-pandas = "*"
pymysql = "*" pymysql = "*"
django-debug-toolbar-template-timings = "*"
[dev-packages] [dev-packages]
django-debug-toolbar = "*" django-debug-toolbar = "*"
......
This diff is collapsed.
...@@ -281,8 +281,25 @@ if DEBUG: ...@@ -281,8 +281,25 @@ if DEBUG:
INSTALLED_APPS += ( INSTALLED_APPS += (
'django_extensions', 'django_extensions',
'debug_toolbar', 'debug_toolbar',
'template_timings_panel',
) )
MIDDLEWARE_CLASSES += ( MIDDLEWARE_CLASSES += (
'debug_toolbar.middleware.DebugToolbarMiddleware', 'debug_toolbar.middleware.DebugToolbarMiddleware',
) )
DEBUG_TOOLBAR_PANELS = [
'debug_toolbar.panels.versions.VersionsPanel',
'debug_toolbar.panels.timer.TimerPanel',
'debug_toolbar.panels.settings.SettingsPanel',
'debug_toolbar.panels.headers.HeadersPanel',
'debug_toolbar.panels.request.RequestPanel',
'debug_toolbar.panels.sql.SQLPanel',
'debug_toolbar.panels.staticfiles.StaticFilesPanel',
'debug_toolbar.panels.templates.TemplatesPanel',
'debug_toolbar.panels.cache.CachePanel',
'debug_toolbar.panels.signals.SignalsPanel',
'debug_toolbar.panels.logging.LoggingPanel',
'debug_toolbar.panels.redirects.RedirectsPanel',
'template_timings_panel.panels.TemplateTimings.TemplateTimings',
]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment