.
This commit is contained in:
@@ -25,10 +25,7 @@ urlpatterns = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
if settings.DEBUG:
|
if settings.DEBUG:
|
||||||
try:
|
# Include django-debug-toolbar when running in DEBUG mode. Use a string
|
||||||
import debug_toolbar
|
# include so the project doesn't fail to import if the package isn't
|
||||||
|
# installed; developers should install it in their dev environment.
|
||||||
urlpatterns = [path("__debug__/", include(debug_toolbar.urls))] + urlpatterns
|
urlpatterns = [path("__debug__/", include("debug_toolbar.urls"))] + urlpatterns
|
||||||
except Exception:
|
|
||||||
# debug_toolbar not installed; skip
|
|
||||||
pass
|
|
||||||
|
|||||||
Reference in New Issue
Block a user