diff options
Diffstat (limited to 'example_project/urls.py')
-rw-r--r-- | example_project/urls.py | 7 |
1 files changed, 7 insertions, 0 deletions
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<path>.*)$', serve, {'document_root': settings.MEDIA_ROOT}) ] + +if settings.DEBUG_TOOLBAR: + import debug_toolbar + urlpatterns = [ + url(r'^__debug__/', include(debug_toolbar.urls)), + ] + urlpatterns + |