2016-03-22 00:21:50 +00:00
|
|
|
from django.conf.urls import url
|
2016-04-09 07:53:05 +00:00
|
|
|
from django.utils.translation import ugettext_lazy as _
|
2016-05-01 12:13:12 +00:00
|
|
|
|
2015-05-02 15:15:20 +00:00
|
|
|
from . import views
|
2016-08-20 05:57:35 +00:00
|
|
|
from .views import ContactView, IndexView, AboutView, HistoryView, LoginView, SignupView,\
|
2016-08-31 02:32:45 +00:00
|
|
|
PasswordResetView, PasswordResetConfirmView, MembershipPaymentView, MembershipActivatedView,\
|
|
|
|
MembershipPricingView, BookingSelectDatesView, BookingPaymentView
|
2016-08-20 05:57:35 +00:00
|
|
|
# from membership.views import LoginRegistrationView
|
2015-05-02 15:15:20 +00:00
|
|
|
|
|
|
|
urlpatterns = [
|
2016-08-04 06:07:41 +00:00
|
|
|
url(_(r'^$'), IndexView.as_view(), name='landing'),
|
2016-04-09 07:53:05 +00:00
|
|
|
url(_(r'contact/?$'), ContactView.as_view(), name='contact'),
|
2016-08-20 05:57:35 +00:00
|
|
|
url(_(r'login/?$'), LoginView.as_view(), name='login'),
|
|
|
|
url(_(r'signup/?$'), SignupView.as_view(), name='signup'),
|
2016-08-31 02:32:45 +00:00
|
|
|
url(r'^logout/?$', 'django.contrib.auth.views.logout',
|
|
|
|
{'next_page': '/digitalglarus/login?logged_out=true'}, name='logout'),
|
2016-08-20 05:57:35 +00:00
|
|
|
url(r'reset-password/?$', PasswordResetView.as_view(), name='reset_password'),
|
|
|
|
url(r'reset-password-confirm/(?P<uidb64>[0-9A-Za-z]+)-(?P<token>.+)/$',
|
|
|
|
PasswordResetConfirmView.as_view(), name='reset_password_confirm'),
|
2016-08-09 05:54:25 +00:00
|
|
|
url(_(r'history/?$'), HistoryView.as_view(), name='history'),
|
2016-08-31 02:32:45 +00:00
|
|
|
url(_(r'booking/?$'), BookingSelectDatesView.as_view(), name='booking'),
|
|
|
|
url(_(r'booking/payment/?$'), BookingPaymentView.as_view(), name='booking_payment'),
|
2016-08-22 07:52:29 +00:00
|
|
|
url(_(r'membership/payment/?$'), MembershipPaymentView.as_view(), name='membership_payment'),
|
|
|
|
url(_(r'membership/activated/?$'), MembershipActivatedView.as_view(),
|
|
|
|
name='membership_activated'),
|
2016-08-31 02:32:45 +00:00
|
|
|
url(_(r'membership/pricing/?$'), MembershipPricingView.as_view(),
|
|
|
|
name='membership_pricing'),
|
2016-04-09 07:53:05 +00:00
|
|
|
url(_(r'supporters/?$'), views.supporters, name='supporters'),
|
2016-05-02 00:00:38 +00:00
|
|
|
url(r'calendar_api/(?P<month>\d+)/(?P<year>\d+)?$', views.CalendarApi.as_view(),name='calendar_api_1'),
|
|
|
|
url(r'calendar_api/', views.CalendarApi.as_view(),name='calendar_api'),
|
2016-04-09 07:53:05 +00:00
|
|
|
url(_(r'support-us/?$'), views.support, name='support'),
|
2016-03-25 18:18:07 +00:00
|
|
|
url(r'^blog/(?P<slug>\w[-\w]*)/$', views.blog_detail, name='blog-detail'),
|
2016-04-09 08:00:41 +00:00
|
|
|
url(r'blog/$', views.blog, name='blog'),
|
2015-05-02 15:15:20 +00:00
|
|
|
]
|