bornhack-website/shop/urls.py

18 lines
1.2 KiB
Python
Raw Normal View History

from django.conf.urls import url
2016-05-12 16:20:31 +00:00
from views import *
urlpatterns = [
2016-05-14 14:26:02 +00:00
url(r'^$', ShopIndexView.as_view(), name='index'),
2016-05-15 22:09:00 +00:00
url(r'products/(?P<slug>[-_\w+]+)/$', ProductDetailView.as_view(), name='product_detail'),
url(r'orders/$', OrderListView.as_view(), name='order_list'),
url(r'orders/(?P<pk>[0-9]+)/$', OrderDetailView.as_view(), name='order_detail'),
2016-05-16 14:31:51 +00:00
url(r'orders/(?P<pk>[0-9]+)/pay/creditcard/$', EpayFormView.as_view(), name='epay_form'),
url(r'orders/(?P<pk>[0-9]+)/pay/creditcard/thanks/$', EpayThanksView.as_view(), name='epay_thanks'),
2016-05-16 14:31:51 +00:00
url(r'orders/(?P<pk>[0-9]+)/pay/blockchain/$', CoinifyRedirectView.as_view(), name='coinify_pay'),
url(r'orders/(?P<pk>[0-9]+)/pay/banktransfer/$', BankTransferView.as_view(), name='bank_transfer'),
url(r'epay_callback/', EpayCallbackView.as_view(), name='epay_callback'),
2016-05-19 09:19:51 +00:00
url(r'privacy-policy/', TemplateView.as_view(template_name='law/privacy_policy.html'), name='privacy-policy'),
url(r'return-policy/', TemplateView.as_view(template_name='law/return_policy.html'), name='return-policy'),
url(r'general-terms-and-conditions/', TemplateView.as_view(template_name='law/general_terms_and_conditions.html'), name='general-terms')
]