From cc2d423f463897202c9b6245c0062a543468cbcd Mon Sep 17 00:00:00 2001 From: Qwann Date: Sat, 18 Feb 2017 18:28:11 +0100 Subject: [PATCH] debug toolbar --- evenementiel/urls.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/evenementiel/urls.py b/evenementiel/urls.py index a33af57..261a59f 100644 --- a/evenementiel/urls.py +++ b/evenementiel/urls.py @@ -1,7 +1,16 @@ -from django.conf.urls import url +from django.conf import settings +from django.conf.urls import url, include +from django.conf.urls.static import static from django.contrib import admin urlpatterns = [ url(r'^admin/', admin.site.urls), + url(r'^event/', include('event.urls')), url(r'^user/', include('user.urls')), ] + +if settings.DEBUG: + import debug_toolbar + urlpatterns += [ + url(r'^__debug__/', include(debug_toolbar.urls)), + ]