From e0ca0383123bb882a138b6979403e28d07dc65a4 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 28 Aug 2017 15:22:01 +0200 Subject: Debug: adapt settings and urls for Debug Toolbar --- example_project/urls.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'example_project/urls.py') diff --git a/example_project/urls.py b/example_project/urls.py index 9e2439a01..20ac7dd3b 100644 --- a/example_project/urls.py +++ b/example_project/urls.py @@ -37,3 +37,10 @@ if settings.DEBUG: url(r'^media/(?P.*)$', serve, {'document_root': settings.MEDIA_ROOT}) ] + +if settings.DEBUG_TOOLBAR: + import debug_toolbar + urlpatterns = [ + url(r'^__debug__/', include(debug_toolbar.urls)), + ] + urlpatterns + -- cgit v1.2.3