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
|
2017-01-20 16:33:25 +00:00
|
|
|
from .views import ContactView, IndexView, HistoryView, LoginView, SignupView,\
|
2016-08-31 02:32:45 +00:00
|
|
|
PasswordResetView, PasswordResetConfirmView, MembershipPaymentView, MembershipActivatedView,\
|
2016-09-06 00:45:45 +00:00
|
|
|
MembershipPricingView, BookingSelectDatesView, BookingPaymentView, OrdersBookingDetailView,\
|
2016-09-20 00:20:57 +00:00
|
|
|
BookingOrdersListView, MembershipOrdersListView, OrdersMembershipDetailView, \
|
2017-01-20 16:33:25 +00:00
|
|
|
MembershipDeactivateView, MembershipDeactivateSuccessView, UserBillingAddressView, EditCreditCardView, \
|
|
|
|
MembershipReactivateView, SupportusView
|
2016-11-27 05:05:15 +00:00
|
|
|
|
|
|
|
|
2016-08-20 05:57:35 +00:00
|
|
|
# from membership.views import LoginRegistrationView
|
2015-05-02 15:15:20 +00:00
|
|
|
|
|
|
|
urlpatterns = [
|
2017-01-20 16:33:25 +00:00
|
|
|
url(_(r'booking/payment/edit/?$'), EditCreditCardView.as_view(), name='edit_credit_card'),
|
2016-08-04 06:07:41 +00:00
|
|
|
url(_(r'^$'), IndexView.as_view(), name='landing'),
|
2017-01-20 16:33:25 +00:00
|
|
|
# url(_(r'new_credit_card/?$'), TermsAndConditions, name='TermsAndConditions'),
|
2016-11-03 17:59:32 +00:00
|
|
|
url(_(r'support-us/?$'), SupportusView.as_view(), name='supportus'),
|
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-10-28 16:25:09 +00:00
|
|
|
url(_(r'users/billing_address/?$'), UserBillingAddressView.as_view(),
|
|
|
|
name='user_billing_address'),
|
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-09-06 00:45:45 +00:00
|
|
|
url(_(r'booking/orders/(?P<pk>\d+)/?$'), OrdersBookingDetailView.as_view(),
|
|
|
|
name='booking_orders_detail'),
|
2016-11-28 15:32:37 +00:00
|
|
|
# url(_(r'booking/orders/(?P<pk>\d+)/cancel/?$'), BookingCancelView.as_view(),
|
|
|
|
# name='booking_orders_cancel'),
|
2016-09-06 00:45:45 +00:00
|
|
|
url(_(r'booking/orders/?$'), BookingOrdersListView.as_view(),
|
|
|
|
name='booking_orders_list'),
|
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'),
|
Reduced pixels needed to navbar transition color, Added membership deactivation form, Added membership deactivation view, Added membership status, Added membership charged.html, Added membership charged.txt, Extended class to send membership charge email, After membership, charge for first time an email is sent to the user, Fixed bug on redirecting, user to membership payment after signup, Fixed redirecting after buying a membership
2016-09-14 05:24:20 +00:00
|
|
|
url(_(r'membership/deactivate/?$'), MembershipDeactivateView.as_view(),
|
|
|
|
name='membership_deactivate'),
|
2016-11-01 04:01:43 +00:00
|
|
|
url(_(r'membership/reactivate/?$'), MembershipReactivateView.as_view(),
|
|
|
|
name='membership_reactivate'),
|
2016-09-20 00:20:57 +00:00
|
|
|
url(_(r'membership/deactivate/success/?$'), MembershipDeactivateSuccessView.as_view(),
|
|
|
|
name='membership_deactivate_success'),
|
2016-08-31 02:32:45 +00:00
|
|
|
url(_(r'membership/pricing/?$'), MembershipPricingView.as_view(),
|
|
|
|
name='membership_pricing'),
|
2016-09-09 04:24:52 +00:00
|
|
|
url(_(r'membership/orders/(?P<pk>\d+)/?$'), OrdersMembershipDetailView.as_view(),
|
|
|
|
name='membership_orders_detail'),
|
|
|
|
url(_(r'membership/orders/?$'), MembershipOrdersListView.as_view(),
|
|
|
|
name='membership_orders_list'),
|
2016-04-09 07:53:05 +00:00
|
|
|
url(_(r'supporters/?$'), views.supporters, name='supporters'),
|
2016-11-03 17:59:32 +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
|
|
|
]
|