bornhack-website/tickets/urls.py

14 lines
351 B
Python

from django.conf.urls import url
from .views import BuyTicketView, TicketIndexView, TicketDetailView
urlpatterns = [
url(r'buy/$', BuyTicketView.as_view(), name='buy'),
url(
r'detail/(?P<pk>[a-zA-Z0-9\-]+)/$',
TicketDetailView.as_view(),
name='detail'
),
url(r'$', TicketIndexView.as_view(), name='index'),
]