fixed debug toolbar setup

This commit is contained in:
vabene1111
2025-11-11 12:59:45 +01:00
parent bfc2e96b54
commit 5a4e0204c9

View File

@@ -34,7 +34,7 @@ urlpatterns = [
),
]
if settings.DEBUG:
if settings.DEBUG and settings.DEBUG_TOOLBAR:
urlpatterns += path('__debug__/', include('debug_toolbar.urls')),
if settings.ENABLE_METRICS: