2016-05-06 20:33:59 +00:00
|
|
|
from django.conf.urls import url
|
|
|
|
|
2016-05-10 15:55:54 +00:00
|
|
|
from .views import (
|
|
|
|
TicketIndexView,
|
|
|
|
TicketOrderView,
|
|
|
|
TicketDetailView,
|
|
|
|
EpayView,
|
|
|
|
)
|
2016-05-06 20:33:59 +00:00
|
|
|
|
|
|
|
urlpatterns = [
|
2016-05-10 15:55:54 +00:00
|
|
|
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'),
|
|
|
|
]
|