move namespaces to the top

This commit is contained in:
Thomas Steen Rasmussen 2016-08-08 20:05:21 +02:00
parent bebd3d9324
commit 6e679800f7

View file

@ -12,6 +12,26 @@ from django.views.generic import TemplateView, RedirectView
from django.core.urlresolvers import reverse_lazy from django.core.urlresolvers import reverse_lazy
urlpatterns = [ urlpatterns = [
url(
r'^profile/',
include('profiles.urls', namespace='profiles')
),
url(
r'^shop/',
include('shop.urls', namespace='shop')
),
url(
r'^news/',
include('news.urls', namespace='news')
),
url(
r'^villages/',
include('villages.urls', namespace='villages')
),
url(
r'^schedule/',
include('program.urls', namespace='schedule')
),
url( url(
r'^$', r'^$',
TemplateView.as_view(template_name='frontpage.html'), TemplateView.as_view(template_name='frontpage.html'),
@ -62,26 +82,6 @@ urlpatterns = [
TemplateView.as_view(template_name='legal/general_terms_and_conditions.html'), TemplateView.as_view(template_name='legal/general_terms_and_conditions.html'),
name='general-terms' name='general-terms'
), ),
url(
r'^profile/',
include('profiles.urls', namespace='profiles')
),
url(
r'^shop/',
include('shop.urls', namespace='shop')
),
url(
r'^news/',
include('news.urls', namespace='news')
),
url(
r'^villages/',
include('villages.urls', namespace='villages')
),
url(
r'^schedule/',
include('program.urls', namespace='schedule')
),
url(r'^accounts/', include('allauth.urls')), url(r'^accounts/', include('allauth.urls')),
url(r'^admin/', include(admin.site.urls)), url(r'^admin/', include(admin.site.urls)),
] ]