diff --git a/dev/requirements.txt b/dev/requirements.txt index bc65fd9..dab71c4 100644 --- a/dev/requirements.txt +++ b/dev/requirements.txt @@ -1,6 +1,7 @@ -r ../conf/requirements.txt coverage==7.2.7 django-debug-toolbar==4.1.0 +django-debug-toolbar-template-profiler pycodestyle==2.10.0 pyflakes==3.0.1 pylint==2.17.4 diff --git a/webvirtcloud/settings-dev.py b/webvirtcloud/settings-dev.py index 990ed60..ccd6fd5 100644 --- a/webvirtcloud/settings-dev.py +++ b/webvirtcloud/settings-dev.py @@ -13,6 +13,7 @@ TEMPLATE_DEBUG = True INSTALLED_APPS += [ "debug_toolbar", + "template_profiler_panel", ] MIDDLEWARE += [ @@ -24,3 +25,20 @@ INTERNAL_IPS = ("127.0.0.1",) DEBUG_TOOLBAR_CONFIG = { "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', +] \ No newline at end of file