misc: enable debug toolbar

This commit is contained in:
Lauréline Guérin 2022-10-20 15:50:55 +02:00
parent d6d9665824
commit 4257eb8968
No known key found for this signature in database
GPG Key ID: 1FAB9B9B4F93D473
1 changed files with 7 additions and 0 deletions

View File

@ -60,3 +60,10 @@ urlpatterns += [
path('login/local/', login_local), # to be used as backup, in case of idp down
re_path(r'^accounts/mellon/', include('mellon.urls')),
]
if settings.DEBUG and 'debug_toolbar' in settings.INSTALLED_APPS:
import debug_toolbar # pylint: disable=import-error
urlpatterns = [
re_path(r'^__debug__/', include(debug_toolbar.urls)),
] + urlpatterns