Ejemplo n.º 1
0
urlpatterns = patterns(
    '',
    url(r'^account/$',
        login_required(CurrentPlanView.as_view()),
        name='current_plan'),
    url(r'^account/activation/$',
        login_required(AccountActivationView.as_view()),
        name='account_activation'),
    url(r'^upgrade/$',
        login_required(UpgradePlanView.as_view()),
        name='upgrade_plan'),
    url(r'^order/extend/new/(?P<pk>\d+)/$',
        login_required(CreateOrderView.as_view()),
        name='create_order_plan'),
    url(r'^order/upgrade/new/(?P<pk>\d+)/$',
        login_required(CreateOrderPlanChangeView.as_view()),
        name='create_order_plan_change'),
    url(r'^change/(?P<pk>\d+)/$',
        login_required(ChangePlanView.as_view()),
        name='change_plan'),
    url(r'^order/$',
        login_required(OrderListView.as_view()),
        name='order_list'),
    url(r'^order/(?P<pk>\d+)/$',
        login_required(OrderView.as_view()),
        name='order'),
    url(r'^order/(?P<pk>\d+)/payment/success/$',
        login_required(OrderPaymentReturnView.as_view(status='success')),
        name='order_payment_success'),
    url(r'^order/(?P<pk>\d+)/payment/failure/$',
        login_required(OrderPaymentReturnView.as_view(status='failure')),
Ejemplo n.º 2
0
from django.conf import settings
from django.conf.urls import patterns, url

from plans.views import CreateOrderView, OrderListView, InvoiceDetailView, AccountActivationView, \
    OrderPaymentReturnView, CurrentPlanView, UpgradePlanView, OrderView, BillingInfoRedirectView, \
    BillingInfoCreateView, BillingInfoUpdateView, BillingInfoDeleteView, CreateOrderPlanChangeView, ChangePlanView, \
    PricingView, FakePaymentsView

urlpatterns = patterns(
    '',
    url(r'^pricing/$', PricingView.as_view(), name='pricing'),
    url(r'^account/$', CurrentPlanView.as_view(), name='current_plan'),
    url(r'^account/activation/$', AccountActivationView.as_view(), name='account_activation'),
    url(r'^upgrade/$', UpgradePlanView.as_view(), name='upgrade_plan'),
    url(r'^order/extend/new/(?P<pk>\d+)/$', CreateOrderView.as_view(), name='create_order_plan'),
    url(r'^order/upgrade/new/(?P<pk>\d+)/$', CreateOrderPlanChangeView.as_view(), name='create_order_plan_change'),
    url(r'^change/(?P<pk>\d+)/$', ChangePlanView.as_view(redirect_page = getattr(settings, "PLANS_REDIRECT_AFTER_CHANGE", 'plans:upgrade_plan')), name='change_plan'),
    url(r'^order/$', OrderListView.as_view(), name='order_list'),
    url(r'^order/(?P<pk>\d+)/$', OrderView.as_view(), name='order'),
    url(r'^order/(?P<pk>\d+)/payment/success/$', OrderPaymentReturnView.as_view(status='success'),
        name='order_payment_success'),
    url(r'^order/(?P<pk>\d+)/payment/failure/$', OrderPaymentReturnView.as_view(status='failure'),
        name='order_payment_failure'),
    url(r'^billing/$', BillingInfoRedirectView.as_view(), name='billing_info'),
    url(r'^billing/create/$', BillingInfoCreateView.as_view(), name='billing_info_create'),
    url(r'^billing/update/$', BillingInfoUpdateView.as_view(), name='billing_info_update'),
    url(r'^billing/delete/$', BillingInfoDeleteView.as_view(), name='billing_info_delete'),
    url(r'^invoice/(?P<pk>\d+)/preview/html/$', InvoiceDetailView.as_view(), name='invoice_preview_html'),
)

if getattr(settings, 'DEBUG', False):
Ejemplo n.º 3
0
    OrderPaymentReturnView, CurrentPlanView, UpgradePlanView, OrderView, BillingInfoRedirectView, \
    BillingInfoCreateView, BillingInfoUpdateView, BillingInfoDeleteView, CreateOrderPlanChangeView, ChangePlanView, \
    PricingView, FakePaymentsView

urlpatterns = [
    url(r'^pricing/$', PricingView.as_view(), name='pricing'),
    url(r'^account/$', CurrentPlanView.as_view(), name='current_plan'),
    url(r'^account/activation/$',
        AccountActivationView.as_view(),
        name='account_activation'),
    url(r'^upgrade/$', UpgradePlanView.as_view(), name='upgrade_plan'),
    url(r'^order/extend/new/(?P<pk>[0-9a-f-]+)/$',
        CreateOrderView.as_view(),
        name='create_order_plan'),
    url(r'^order/upgrade/new/(?P<pk>[0-9a-f-]+)/$',
        CreateOrderPlanChangeView.as_view(),
        name='create_order_plan_change'),
    url(r'^change/(?P<pk>[0-9a-f-]+)/$',
        ChangePlanView.as_view(),
        name='change_plan'),
    url(r'^order/$', OrderListView.as_view(), name='order_list'),
    url(r'^order/(?P<pk>[0-9a-f-]+)/$', OrderView.as_view(), name='order'),
    url(r'^order/(?P<pk>[0-9a-f-]+)/payment/success/$',
        OrderPaymentReturnView.as_view(status='success'),
        name='order_payment_success'),
    url(r'^order/(?P<pk>[0-9a-f-]+)/payment/failure/$',
        OrderPaymentReturnView.as_view(status='failure'),
        name='order_payment_failure'),
    url(r'^billing/$', BillingInfoRedirectView.as_view(), name='billing_info'),
    url(r'^billing/create/$',
        BillingInfoCreateView.as_view(),
Ejemplo n.º 4
0
                         CurrentPlanView, UpgradePlanView, OrderView,
                         BillingInfoRedirectView, BillingInfoCreateView,
                         BillingInfoUpdateView, BillingInfoDeleteView,
                         CreateOrderPlanChangeView, ChangePlanView,
                         PricingView, FakePaymentsView)

urlpatterns = [
    url(r'^pricing/$', PricingView.as_view(), name='pricing'),
    url(r'^account/$', CurrentPlanView.as_view(), name='current_plan'),
    url(r'^account/activation/$',
        AccountActivationView.as_view(), name='account_activation'),
    url(r'^upgrade/$', UpgradePlanView.as_view(), name='upgrade_plan'),
    url(r'^order/extend/new/(?P<pk>\d+)/$',
        CreateOrderView.as_view(), name='create_order_plan'),
    url(r'^order/upgrade/new/(?P<pk>\d+)/$',
        CreateOrderPlanChangeView.as_view(), name='create_order_plan_change'),
    url(r'^change/(?P<pk>\d+)/$',
        ChangePlanView.as_view(), name='change_plan'),
    url(r'^order/$', OrderListView.as_view(), name='order_list'),
    url(r'^order/(?P<pk>\d+)/$', OrderView.as_view(), name='order'),
    url(r'^order/(?P<pk>\d+)/payment/success/$',
        OrderPaymentReturnView.as_view(status='success'),
        name='order_payment_success'),
    url(r'^order/(?P<pk>\d+)/payment/failure/$',
        OrderPaymentReturnView.as_view(status='failure'),
        name='order_payment_failure'),
    url(r'^billing/$', BillingInfoRedirectView.as_view(), name='billing_info'),
    url(r'^billing/create/$',
        BillingInfoCreateView.as_view(), name='billing_info_create'),
    url(r'^billing/update/$',
        BillingInfoUpdateView.as_view(), name='billing_info_update'),
Ejemplo n.º 5
0
from django.conf import settings
from django.conf.urls import patterns, url

from plans.views import CreateOrderView, OrderListView, InvoiceDetailView, AccountActivationView, \
    OrderPaymentReturnView, CurrentPlanView, UpgradePlanView, OrderView, BillingInfoRedirectView, \
    BillingInfoCreateView, BillingInfoUpdateView, BillingInfoDeleteView, CreateOrderPlanChangeView, ChangePlanView, \
    PricingView, FakePaymentsView

urlpatterns = patterns(
    '',
    url(r'^pricing/$', PricingView.as_view(), name='pricing'),
    url(r'^account/$', CurrentPlanView.as_view(), name='current_plan'),
    url(r'^account/activation/$', AccountActivationView.as_view(), name='account_activation'),
    url(r'^upgrade/$', UpgradePlanView.as_view(), name='upgrade_plan'),
    url(r'^order/extend/new/(?P<pk>\d+)/$', CreateOrderView.as_view(), name='create_order_plan'),
    url(r'^order/upgrade/new/(?P<pk>\d+)/$', CreateOrderPlanChangeView.as_view(), name='create_order_plan_change'),
    url(r'^change/(?P<pk>\d+)/$', ChangePlanView.as_view(), name='change_plan'),
    url(r'^order/$', OrderListView.as_view(), name='order_list'),
    url(r'^order/(?P<pk>\d+)/$', OrderView.as_view(), name='order'),
    url(r'^order/(?P<pk>\d+)/payment/success/$', OrderPaymentReturnView.as_view(status='success'),
        name='order_payment_success'),
    url(r'^order/(?P<pk>\d+)/payment/failure/$', OrderPaymentReturnView.as_view(status='failure'),
        name='order_payment_failure'),
    url(r'^billing/$', BillingInfoRedirectView.as_view(), name='billing_info'),
    url(r'^billing/create/$', BillingInfoCreateView.as_view(), name='billing_info_create'),
    url(r'^billing/update/$', BillingInfoUpdateView.as_view(), name='billing_info_update'),
    url(r'^billing/delete/$', BillingInfoDeleteView.as_view(), name='billing_info_delete'),
    url(r'^invoice/(?P<pk>\d+)/preview/html/$', InvoiceDetailView.as_view(), name='invoice_preview_html'),
)

if getattr(settings, 'DEBUG', False):