debug toolbar
This commit is contained in:
parent
87967dbad7
commit
cc2d423f46
1 changed files with 10 additions and 1 deletions
|
@ -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
|
from django.contrib import admin
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
url(r'^admin/', admin.site.urls),
|
url(r'^admin/', admin.site.urls),
|
||||||
|
url(r'^event/', include('event.urls')),
|
||||||
url(r'^user/', include('user.urls')),
|
url(r'^user/', include('user.urls')),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if settings.DEBUG:
|
||||||
|
import debug_toolbar
|
||||||
|
urlpatterns += [
|
||||||
|
url(r'^__debug__/', include(debug_toolbar.urls)),
|
||||||
|
]
|
||||||
|
|
Loading…
Reference in a new issue