jwjacobson / jazztunes

a jazz repertoire management app
https://jazztunes.org
GNU General Public License v3.0
3 stars 0 forks source link

Django Debug Toolbar appears as part of app #189

Closed jwjacobson closed 5 months ago

ryaustin commented 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
    }
bbelderbos commented 5 months ago

Nice, I have this in project/urls.py:

if settings.DEBUG:
    import debug_toolbar

    urlpatterns += [
        path("__debug__/", include(debug_toolbar.urls)),
    ]