bornhack-website/program/urls.py

12 lines
581 B
Python
Raw Normal View History

2016-07-13 17:13:47 +00:00
from django.conf.urls import url
2016-08-07 13:49:30 +00:00
from . import views
2016-07-13 17:13:47 +00:00
urlpatterns = [
2016-08-08 17:36:13 +00:00
url(r'^(?P<year>\d{4})-(?P<month>\d{2})-(?P<day>\d{2})/$', views.ProgramDayView.as_view(), name='day'),
2016-08-07 13:49:30 +00:00
url(r'^$', views.ProgramOverviewView.as_view(), name='index'),
2016-08-08 17:36:13 +00:00
url(r'^speakers/$', views.SpeakerListView.as_view(), name='speaker_index'),
url(r'speakers/(?P<slug>[-_\w+]+)/$', views.SpeakerDetail.as_view(), name='speaker_detail'),
url(r'^events/$', views.EventListView.as_view(), name='events_index'),
url(r'^(?P<slug>[-_\w+]+)/$', views.EventDetailView.as_view(), name='event'),
2016-07-13 17:13:47 +00:00
]