Skip to content

Commit 24ff59e

Browse files
Allow enabling Django Debug Toolbar via env variable
1 parent bdfb210 commit 24ff59e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docker-compose.override.dev.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ services:
77
environment:
88
PYTHONWARNINGS: error # We are strict about Warnings during development
99
DD_DEBUG: 'True'
10+
DD_DJANGO_DEBUG_TOOLBAR_ENABLED: 'True'
1011
DD_ADMIN_USER: "${DD_ADMIN_USER:-admin}"
1112
DD_ADMIN_PASSWORD: "${DD_ADMIN_PASSWORD:-admin}"
1213
DD_EMAIL_URL: "smtp://mailhog:1025"

dojo/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,6 @@ def drf_spectacular_preprocessing_filter_spec(endpoints):
284284

285285

286286
if hasattr(settings, "DJANGO_DEBUG_TOOLBAR_ENABLED"):
287-
if settings.DEBUG_TOOLBAR_ENABLED:
287+
if settings.DJANGO_DEBUG_TOOLBAR_ENABLED:
288288
from debug_toolbar.toolbar import debug_toolbar_urls
289289
urlpatterns += debug_toolbar_urls()

0 commit comments

Comments
 (0)