Skip to content
Snippets Groups Projects
Commit 8c40f383 authored by Johannes Raggam's avatar Johannes Raggam
Browse files

/today cannot be root only url, since it's not as so in plone. unifying, unimplemented additions

parent 8c9bb666
No related branches found
No related tags found
No related merge requests found
...@@ -6,15 +6,18 @@ from helsinki.program.models import Host, Show, TimeSlot ...@@ -6,15 +6,18 @@ from helsinki.program.models import Host, Show, TimeSlot
from helsinki.program.views import CurrentShowView, DayScheduleView, RecommendationsView, ShowListView, TodayScheduleView, WeekScheduleView from helsinki.program.views import CurrentShowView, DayScheduleView, RecommendationsView, ShowListView, TodayScheduleView, WeekScheduleView
urlpatterns = patterns('', urlpatterns = patterns('',
('^/?$', TodayScheduleView.as_view()), ('^/today/?$', TodayScheduleView.as_view()),
('^/(?P<year>\d{4})/(?P<month>\d{1,2})/(?P<day>\d{1,2})/?$', DayScheduleView.as_view()), ('^/(?P<year>\d{4})/(?P<month>\d{1,2})/(?P<day>\d{1,2})/?$', DayScheduleView.as_view()),
('^/(?P<year>\d{4})/(?P<week>\d{1,2})/?$', WeekScheduleView.as_view()), ('^/(?P<year>\d{4})/(?P<week>\d{1,2})/?$', WeekScheduleView.as_view()),
('^/current_box/?$', CurrentShowView.as_view()), ('^/current_box/?$', CurrentShowView.as_view()),
('^/hosts/?$', ListView.as_view(model=Host, context_object_name='hosts')), ('^/hosts/?$', ListView.as_view(model=Host, context_object_name='hosts')),
url('^/hosts/(?P<pk>\d+)/?$', DetailView.as_view(model=Host), name='host-detail'), url('^/hosts/(?P<pk>\d+)/?$', DetailView.as_view(model=Host), name='host-detail'),
('^/recommendations/?$', RecommendationsView.as_view()), ('^/tips/?$', RecommendationsView.as_view()),
('^/recommendations_box/?$', RecommendationsView.as_view(template_name='program/recommendations_box.html')), ('^/tips_box/?$', RecommendationsView.as_view(template_name='program/recommendations_box.html')),
('^/shows/?$', ShowListView.as_view()), ('^/shows/?$', ShowListView.as_view()),
url('^/shows/(?P<slug>[\w-]+)/?$', DetailView.as_view(model=Show), name='show-detail'), url('^/shows/(?P<slug>[\w-]+)/?$', DetailView.as_view(model=Show), name='show-detail'),
url('^/(?P<pk>\d+)/?$', DetailView.as_view(model=TimeSlot), name='timeslot-detail'), url('^/(?P<pk>\d+)/?$', DetailView.as_view(model=TimeSlot), name='timeslot-detail'),
# TODO: implement
('^/week/?$', TodayScheduleView.as_view()),
('^/topics/?$', RecommendationsView.as_view(template_name='program/recommendations_box.html')),
) )
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment