bornhack-website/shop/urls.py
Thomas Steen Rasmussen b55291fe8e fix index regex
2016-05-14 16:26:02 +02:00

20 lines
635 B
Python

from django.conf.urls import url
from views import *
urlpatterns = [
#url(
#r'pay/credit_card/(?P<ticket_id>[a-zA-Z0-9\-]+)/$',
#EpayView.as_view(),
#name='epay_form'
#),
#url(
#r'epay_callback/',
#EpayCallbackView,
#name='epay_callback'
#),
url(r'^$', ShopIndexView.as_view(), name='index'),
url(r'products/(?P<pk>[a-zA-Z0-9\-]+)/$', ProductDetailView.as_view(), name='product_detail'),
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'),
]