bornhack-website/tickets/urls.py

30 lines
639 B
Python

from django.conf.urls import url
from .views import (
TicketIndexView,
TicketOrderView,
TicketDetailView,
EpayView,
EpayCallbackView,
)
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'
),
url(
r'epay_callback/',
EpayCallbackView,
name='epay_callback'
),
url(
r'detail/(?P<pk>[a-zA-Z0-9\-]+)/$',
TicketDetailView.as_view(),
name='detail'
),
url(r'$', TicketIndexView.as_view(), name='index'),
]