Esempio n. 1
0
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):
    urlpatterns += (
Esempio n. 2
0
     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')),
     name='order_payment_failure'),
 url(r'^billing/$',
     login_required(BillingInfoRedirectView.as_view()),
Esempio n. 3
0
from django.contrib.auth.decorators import login_required, permission_required
from django.conf.urls.defaults import patterns, include, url
from plans.models import Invoice
from plans.views import CreateOrderView, OrderListView, InvoiceDetailView, AccountActivationView, OrderPaymentReturnView, CurrentPlanView, UpgradePlanView, OrderView, BillingInfoRedirectView, BillingInfoCreateView, BillingInfoUpdateView, BillingInfoDeleteView, CreateOrderPlanChangeView,  ChangePlanView

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')), name='order_payment_failure'),

    url(r'^billing/$', login_required(BillingInfoRedirectView.as_view()), name='billing_info'),
    url(r'^billing/create/$', login_required(BillingInfoCreateView.as_view()), name='billing_info_create'),
    url(r'^billing/update/$', login_required(BillingInfoUpdateView.as_view()), name='billing_info_update'),
    url(r'^billing/delete/$', login_required(BillingInfoDeleteView.as_view()), name='billing_info_delete'),
    url(r'^invoice/(?P<pk>\d+)/preview/html/$', login_required(InvoiceDetailView.as_view()), name='invoice_preview_html'),

#    url(r'^invoice/(?P<pk>\d+)/preview/pdf/$', login_required(PDFDetailView.as_view(queryset=Invoice.objects.all(), template_name='plans/PL_EN.html')), name='invoice_preview_pdf'),
Esempio n. 4
0
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'),
    url(r'^payments/(?P<pk>\d+)/$', 'plans.views.paypal_payment', name='paypal_payments'),
)

Esempio n. 5
0
                         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'),
    url(r'^billing/delete/$',
        BillingInfoDeleteView.as_view(), name='billing_info_delete'),
Esempio n. 6
0
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(),
        name='billing_info_create'),
    url(r'^billing/update/$',
        BillingInfoUpdateView.as_view(),
Esempio n. 7
0
    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(),
Esempio n. 8
0
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):
    urlpatterns += (
Esempio n. 9
0
    PricingView, FakePaymentsView

urlpatterns = [
    path('pricing/', PricingView.as_view(), name='pricing'),
    path('account/', CurrentPlanView.as_view(), name='current_plan'),
    path('account/activation/',
         AccountActivationView.as_view(),
         name='account_activation'),
    path('upgrade/', UpgradePlanView.as_view(), name='upgrade_plan'),
    path('order/extend/new/<int:pk>/',
         CreateOrderView.as_view(),
         name='create_order_plan'),
    path('order/upgrade/new/<int:pk>/',
         CreateOrderPlanChangeView.as_view(),
         name='create_order_plan_change'),
    path('change/<int:pk>/', ChangePlanView.as_view(), name='change_plan'),
    path('order/', OrderListView.as_view(), name='order_list'),
    path('order/<int:pk>/', OrderView.as_view(), name='order'),
    path('order/<int:pk>/payment/success/',
         OrderPaymentReturnView.as_view(status='success'),
         name='order_payment_success'),
    path('order/<int:pk>/payment/failure/',
         OrderPaymentReturnView.as_view(status='failure'),
         name='order_payment_failure'),
    path('billing/', BillingInfoRedirectView.as_view(), name='billing_info'),
    path('billing/create/',
         BillingInfoCreateView.as_view(),
         name='billing_info_create'),
    path('billing/update/',
         BillingInfoUpdateView.as_view(),
         name='billing_info_update'),