dynamicweb/membership/urls.py

14 lines
568 B
Python
Raw Normal View History

2016-03-07 16:49:02 +00:00
__author__ = 'tomislav'
from django.conf.urls import url
2016-03-11 18:42:45 +00:00
from django.contrib.auth.decorators import login_required
2016-03-07 16:49:02 +00:00
from . import views
urlpatterns = (
2016-03-11 18:42:45 +00:00
url(r"^/$", views.LoginRegistrationView.as_view(), name='login'),
2016-03-07 16:49:02 +00:00
url(r"^/validate/(?P<validate_slug>.*)/$", views.validate_email),
2016-03-11 18:42:45 +00:00
url(r"^/membership/$", login_required(views.MembershipView.as_view()), name='membership'),
url(r"^/buy/(?P<time>\w+)/$", login_required(views.CreditCardView.as_view()), name='payment'),
url(r'^/buy/(?P<time>\w+)/reset',login_required(views.reset),name='reset')
2016-03-07 16:49:02 +00:00
)