forked from CGM_Public/pretix_original
Move URLconfig around to fix Django Debug Toolbar
This commit is contained in:
@@ -9,7 +9,8 @@ import pretixpresale.urls
|
|||||||
urlpatterns = patterns('',
|
urlpatterns = patterns('',
|
||||||
url(r'^control/', include(pretixcontrol.urls, namespace='control')),
|
url(r'^control/', include(pretixcontrol.urls, namespace='control')),
|
||||||
url(r'^admin/', include(admin.site.urls)),
|
url(r'^admin/', include(admin.site.urls)),
|
||||||
url(r'', include(pretixpresale.urls, namespace='presale')),
|
# The pretixpresale namespace is configured at the bottom of this file, because it
|
||||||
|
# contains a wildcard-style URL which has to be configured _after_ debug settings.
|
||||||
)
|
)
|
||||||
|
|
||||||
if settings.DEBUG:
|
if settings.DEBUG:
|
||||||
@@ -17,3 +18,7 @@ if settings.DEBUG:
|
|||||||
urlpatterns += patterns('',
|
urlpatterns += patterns('',
|
||||||
url(r'^__debug__/', include(debug_toolbar.urls)),
|
url(r'^__debug__/', include(debug_toolbar.urls)),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
urlpatterns += patterns('',
|
||||||
|
url(r'', include(pretixpresale.urls, namespace='presale'))
|
||||||
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user