bornhack-website/tickets/urls.py

20 lines
489 B
Python
Raw Normal View History

2016-05-06 20:33:59 +00:00
from django.conf.urls import url
from .views import (
TicketIndexView,
TicketOrderView,
TicketDetailView,
EpayView,
)
2016-05-06 20:33:59 +00:00
urlpatterns = [
url(r'order/$', TicketOrderView.as_view(), name='order'),
url(r'pay/credit_card/(?P<ticket_id>[a-zA-Z0-9\-]+)/$', EpayView.as_view(), name='epay_form'),
2016-05-06 20:33:59 +00:00
url(
r'detail/(?P<pk>[a-zA-Z0-9\-]+)/$',
TicketDetailView.as_view(),
name='detail'
),
url(r'$', TicketIndexView.as_view(), name='index'),
]