예제 #1
0
from __future__ import unicode_literals

from django.conf.urls import url

from payment.views import PaymentCreate, PaymentSuccess

urlpatterns = [
    url("^confirm", PaymentCreate.as_view(),
        name="payment_confirmation"),
    url("^success", PaymentSuccess.as_view(),
        name="payment_confirmation_success"),
]
예제 #2
0
    url(r'^$', MainView.as_view(), name='main'),
    url(r'^about/$', TemplateView.as_view(template_name="about.html"), name='about'),
    url(r'^manual_ru/$', TemplateView.as_view(template_name="manual_ru.html"), name='manual_ru'),
    url(r'^manual_en/$', TemplateView.as_view(template_name="manual_en.html"), name='manual_en'),
    url(r'^en/terms/$', TemplateView.as_view(template_name="terms.html"), name='terms'),
    url(r'^en/policy/$', TemplateView.as_view(template_name="policy.html"), name='policy'),
    url(r'^ru/terms/$', TemplateView.as_view(template_name="terms.html"), name='terms_ru'),
    url(r'^ru/policy/$', TemplateView.as_view(template_name="policy.html"), name='policy_ru'),
    url(r'^options/$', TemplateView.as_view(template_name="payment/options.html"),
        name='pay_options'),
    url(r'^payment/$', not_guest_required(PaymentPage.as_view()), name='payment'),
    url(r'^payment_small_business/$', not_guest_required(PaymentPage.as_view(small_business=True)),
        name='payment_small_business'),
    url(r'^account/$', not_guest_required(TemplateView.as_view(template_name="users/account.html")),
        name='account'),
    url(r'^account/delete/$', not_guest_required(DeleteUserView.as_view()), name='account_delete'),
    url(r'^payment/success/$', PaymentSuccess.as_view(), name='payment_success'),
    url(r'^payment/cancel/$', TemplateView.as_view(template_name="payment/cancel.html"),
        name='payment_cancel'),
    (r'^payment/IPN/trytoguessit/', include('paypal.standard.ipn.urls')),
)

urlpatterns += patterns('tools.views',
    url('^contacts/$', 'contact', name='contacts'),
)

urlpatterns += patterns('',
    (r'^cache/', include('django_memcached.urls')),
)
handler500 = 'tools.views.server_error'
예제 #3
0
        name='pay_options'),
    url(r'^payment/$',
        not_guest_required(PaymentPage.as_view()),
        name='payment'),
    url(r'^payment_small_business/$',
        not_guest_required(PaymentPage.as_view(small_business=True)),
        name='payment_small_business'),
    url(r'^account/$',
        not_guest_required(
            TemplateView.as_view(template_name="users/account.html")),
        name='account'),
    url(r'^account/delete/$',
        not_guest_required(DeleteUserView.as_view()),
        name='account_delete'),
    url(r'^payment/success/$',
        PaymentSuccess.as_view(),
        name='payment_success'),
    url(r'^payment/cancel/$',
        TemplateView.as_view(template_name="payment/cancel.html"),
        name='payment_cancel'),
    (r'^payment/IPN/trytoguessit/', include('paypal.standard.ipn.urls')),
)

urlpatterns += patterns(
    'tools.views',
    url('^contacts/$', 'contact', name='contacts'),
)

urlpatterns += patterns(
    '',
    (r'^cache/', include('django_memcached.urls')),