From b72a2795f0aa06b37efa2af4370146d7d9e25b66 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 @@