ignore debug toolbar

This commit is contained in:
Matthias 2022-02-13 17:31:34 +01:00
parent a763ac383c
commit 2838817e32
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -204,7 +204,7 @@ if settings.DEBUG:
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
# Debug toolbar access (only allowed in DEBUG mode)
if 'debug_toolbar' in settings.INSTALLED_APPS:
if 'debug_toolbar' in settings.INSTALLED_APPS: # pragma: no cover
import debug_toolbar
urlpatterns = [
path('__debug/', include(debug_toolbar.urls)),