mirror of
https://github.com/retspen/webvirtcloud
synced 2025-03-22 04:52:58 +00:00
add template profile for django toolbar
This commit is contained in:
parent
0926a3c3aa
commit
7e88db9d2b
2 changed files with 19 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
-r ../conf/requirements.txt
|
-r ../conf/requirements.txt
|
||||||
coverage==7.2.7
|
coverage==7.2.7
|
||||||
django-debug-toolbar==4.1.0
|
django-debug-toolbar==4.1.0
|
||||||
|
django-debug-toolbar-template-profiler
|
||||||
pycodestyle==2.10.0
|
pycodestyle==2.10.0
|
||||||
pyflakes==3.0.1
|
pyflakes==3.0.1
|
||||||
pylint==2.17.4
|
pylint==2.17.4
|
||||||
|
|
|
@ -13,6 +13,7 @@ TEMPLATE_DEBUG = True
|
||||||
|
|
||||||
INSTALLED_APPS += [
|
INSTALLED_APPS += [
|
||||||
"debug_toolbar",
|
"debug_toolbar",
|
||||||
|
"template_profiler_panel",
|
||||||
]
|
]
|
||||||
|
|
||||||
MIDDLEWARE += [
|
MIDDLEWARE += [
|
||||||
|
@ -24,3 +25,20 @@ INTERNAL_IPS = ("127.0.0.1",)
|
||||||
DEBUG_TOOLBAR_CONFIG = {
|
DEBUG_TOOLBAR_CONFIG = {
|
||||||
"INTERCEPT_REDIRECTS": False,
|
"INTERCEPT_REDIRECTS": False,
|
||||||
}
|
}
|
||||||
|
# http://django-debug-toolbar.readthedocs.org/en/latest/configuration.html#debug-toolbar-panels
|
||||||
|
DEBUG_TOOLBAR_PANELS = [
|
||||||
|
'debug_toolbar.panels.history.HistoryPanel',
|
||||||
|
'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.redirects.RedirectsPanel',
|
||||||
|
'debug_toolbar.panels.profiling.ProfilingPanel',
|
||||||
|
'template_profiler_panel.panels.template.TemplateProfilerPanel',
|
||||||
|
]
|
Loading…
Reference in a new issue