bornhack-website/shop/urls.py

30 lines
1.7 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-25 20:48:02 +00:00
2016-05-15 22:09:00 +00:00
url(r'products/(?P<slug>[-_\w+]+)/$', ProductDetailView.as_view(), name='product_detail'),
2016-05-25 20:48:02 +00:00
2016-05-15 22:09:00 +00:00
url(r'orders/$', OrderListView.as_view(), name='order_list'),
url(r'orders/(?P<pk>[0-9]+)/$', OrderDetailView.as_view(), name='order_detail'),
2016-05-30 21:58:22 +00:00
url(r'orders/(?P<pk>[0-9]+)/invoice/$', DownloadInvoiceView.as_view(), name='download_invoice'),
url(r'orders/(?P<pk>[0-9]+)/mark_as_paid/$', OrderMarkAsPaidView.as_view(), name='mark_order_as_paid'),
2016-05-25 20:48:02 +00:00
2016-06-14 07:24:07 +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/callback/$',EpayCallbackView.as_view(), name='epay_callback'),
url(r'orders/(?P<pk>[0-9]+)/pay/creditcard/thanks/$', EpayThanksView.as_view(), name='epay_thanks'),
2016-05-25 20:48:02 +00:00
2016-05-16 14:31:51 +00:00
url(r'orders/(?P<pk>[0-9]+)/pay/blockchain/$', CoinifyRedirectView.as_view(), name='coinify_pay'),
2016-05-25 20:48:02 +00:00
url(r'orders/(?P<pk>[0-9]+)/pay/blockchain/callback/$', CoinifyCallbackView.as_view(), name='coinify_callback'),
url(r'orders/(?P<pk>[0-9]+)/pay/blockchain/thanks/$', CoinifyThanksView.as_view(), name='coinify_thanks'),
2016-05-16 14:31:51 +00:00
url(r'orders/(?P<pk>[0-9]+)/pay/banktransfer/$', BankTransferView.as_view(), name='bank_transfer'),
url(r'tickets/$', TicketListView.as_view(), name='ticket_list'),
2016-05-30 22:58:11 +00:00
url(r'tickets/(?P<pk>\b[0-9A-Fa-f]{8}\b(-\b[0-9A-Fa-f]{4}\b){3}-\b[0-9A-Fa-f]{12}\b)$', TicketDetailView.as_view(), name='ticket_detail'),
2016-06-19 19:37:25 +00:00
url(r'creditnotes/$', CreditNoteListView.as_view(), name='creditnote_list'),
url(r'creditnotes/(?P<pk>[0-9]+)/pdf/$', DownloadCreditNoteView.as_view(), name='download_creditnote'),
]