Skip to content

Commit

Permalink
chore: dependencies update
Browse files Browse the repository at this point in the history
  • Loading branch information
PiotrIw committed Oct 15, 2024
1 parent 36d68f0 commit a5c6a9e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 17 deletions.
38 changes: 22 additions & 16 deletions config/settings/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,28 @@

# django-debug-toolbar

INSTALLED_APPS += ("debug_toolbar",)
MIDDLEWARE += ("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",
]
if "test" not in sys.argv:
INSTALLED_APPS += ("debug_toolbar",)
MIDDLEWARE += ("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",
]
DEBUG_TOOLBAR_CONFIG = {
"SHOW_TEMPLATE_CONTEXT": True,
"SHOW_TOOLBAR_CALLBACK": lambda x: "test" not in sys.argv,
}
ROSETTA_EXCLUDED_APPLICATIONS += ("debug_toolbar",)

MY_INTERNAL_IP = env("MY_INTERNAL_IP", default="")
INTERNAL_IPS = ("127.0.0.1", "10.0.2.2", MY_INTERNAL_IP)
Expand Down
2 changes: 1 addition & 1 deletion requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Sphinx==8.1.3

# django-debug-toolbar that works with Django 1.5+
django-debug-toolbar==4.3.0
django-debug-toolbar==4.4.6
django-extensions==3.2.3
graphviz==0.20.3
factory-boy==3.3.1
Expand Down

0 comments on commit a5c6a9e

Please sign in to comment.