diff --git a/recipes/urls.py b/recipes/urls.py index 3b5417585..ac684cc3d 100644 --- a/recipes/urls.py +++ b/recipes/urls.py @@ -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: