debug toolbar

This commit is contained in:
Qwann 2017-02-18 18:28:11 +01:00
parent 87967dbad7
commit cc2d423f46

View file

@ -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)),
]