From 5d0b49b6d9f08f317c0e81a62079bebaeabf83ed Mon Sep 17 00:00:00 2001 From: Tomislav R Date: Sat, 23 Apr 2016 20:12:55 +0200 Subject: [PATCH] new url structure --- digitalglarus/urls.py | 6 +++--- membership/templates/login.html | 2 +- membership/templates/membership.html | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/digitalglarus/urls.py b/digitalglarus/urls.py index 29c9dcb8..ac72fc26 100644 --- a/digitalglarus/urls.py +++ b/digitalglarus/urls.py @@ -5,13 +5,13 @@ from . import views from .views import ContactView, IndexView, AboutView urlpatterns = [ - url(r'', IndexView.as_view(), name='home'), + url(r'^$', IndexView.as_view(), name='home'), url(_(r'home/?$'), IndexView.as_view(), name='home'), url(_(r'about/?$'), AboutView.as_view(), name='about'), url(_(r'contact/?$'), ContactView.as_view(), name='contact'), url(_(r'supporters/?$'), views.supporters, name='supporters'), - url(_(r'calendar_api/(?P\d+)/(?P\d+)?$'),views.CalendarApi.as_view()), - url(_(r'calendar_api/'),views.CalendarApi.as_view()), + url(r'calendar_api/(?P\d+)/(?P\d+)?$',views.CalendarApi.as_view()), + url(r'calendar_api/',views.CalendarApi.as_view()), url(_(r'support-us/?$'), views.support, name='support'), url(r'^blog/(?P\w[-\w]*)/$', views.blog_detail, name='blog-detail'), url(r'blog/$', views.blog, name='blog'), diff --git a/membership/templates/login.html b/membership/templates/login.html index d199f601..6d1c981c 100644 --- a/membership/templates/login.html +++ b/membership/templates/login.html @@ -25,7 +25,7 @@