Panel for Django-debug-toolbar that checks some security headers
Project description
djt_csp
Add a panel to django-debug-toolbar for checking some security headers.
djt_csp
is a close copy of the Mozilla observatory.
Just install djt-csp
...
python3 -m pip install djt-csp
and add "djt_csp.panel.SecurityPanel" to your settings DEBUG_TOOLBAR_PANELS
.
# django-debug-toolbar
DEBUG_TOOLBAR_PANELS = [
"debug_toolbar.panels.versions.VersionsPanel",
"debug_toolbar.panels.timer.TimerPanel",
"djt_csp.panel.SecurityPanel",
"debug_toolbar.panels.settings.SettingsPanel",
"debug_toolbar.panels.profiling.ProfilingPanel",
"debug_toolbar.panels.headers.HeadersPanel",
"debug_toolbar.panels.request.RequestPanel",
"debug_toolbar.panels.sql.SQLPanel",
"debug_toolbar.panels.templates.TemplatesPanel",
"debug_toolbar.panels.staticfiles.StaticFilesPanel",
"debug_toolbar.panels.cache.CachePanel",
"debug_toolbar.panels.signals.SignalsPanel",
"debug_toolbar.panels.redirects.RedirectsPanel",
]
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
djt_csp-0.9.2.tar.gz
(14.4 kB
view hashes)
Built Distribution
djt_csp-0.9.2-py3-none-any.whl
(15.6 kB
view hashes)