Closed jwjacobson closed 5 months ago
Probably means your Debug is True in prod.
Several straightforward ways to disable it but in base.py you can use something like:
if DEBUG: DEBUG_TOOLBAR_CONFIG = { "SHOW_TOOLBAR_CALLBACK": lambda r: True, # False disables it }
Nice, I have this in project/urls.py:
project/urls.py
if settings.DEBUG: import debug_toolbar urlpatterns += [ path("__debug__/", include(debug_toolbar.urls)), ]
Probably means your Debug is True in prod.
Several straightforward ways to disable it but in base.py you can use something like: