bornhack-website/shop/urls.py
Thomas Steen Rasmussen 2287e6dda5 working on epay payment
2016-05-16 15:31:37 +02:00

13 lines
634 B
Python

from django.conf.urls import url
from views import *
urlpatterns = [
url(r'orders/(?P<pk>[0-9]+)/pay/creditcard/$', EpayFormView.as_view(), name='epay_form'),
url(r'epay_callback/', EpayCallbackViev.as_view(), name='epay_callback'),
url(r'^$', ShopIndexView.as_view(), name='index'),
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'),
# url(r'orders/(?P<pk>[0-9]+)/checkout/$', CheckoutView.as_view(), name='checkout'),
]