diff options
author | Johannes Raggam <raggam-nl@adm.at> | 2011-04-06 19:56:57 (GMT) |
---|---|---|
committer | Johannes Raggam <raggam-nl@adm.at> | 2011-04-06 19:56:57 (GMT) |
commit | 8c40f3836613b0d2b0d08d87a5ad9444aac275f9 (patch) | |
tree | e2b60094c1898e895e4700c3f446b1fff1991921 /helsinki | |
parent | 8c9bb66627a700476c48976d24a6c5944bd5345e (diff) |
/today cannot be root only url, since it's not as so in plone. unifying, unimplemented additions
Diffstat (limited to 'helsinki')
-rw-r--r-- | helsinki/program/urls_program.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/helsinki/program/urls_program.py b/helsinki/program/urls_program.py index 913ebe4..14fd7a3 100644 --- a/helsinki/program/urls_program.py +++ b/helsinki/program/urls_program.py @@ -6,15 +6,18 @@ from helsinki.program.models import Host, Show, TimeSlot from helsinki.program.views import CurrentShowView, DayScheduleView, RecommendationsView, ShowListView, TodayScheduleView, WeekScheduleView 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<week>\d{1,2})/?$', WeekScheduleView.as_view()), ('^/current_box/?$', CurrentShowView.as_view()), ('^/hosts/?$', ListView.as_view(model=Host, context_object_name='hosts')), url('^/hosts/(?P<pk>\d+)/?$', DetailView.as_view(model=Host), name='host-detail'), - ('^/recommendations/?$', RecommendationsView.as_view()), - ('^/recommendations_box/?$', RecommendationsView.as_view(template_name='program/recommendations_box.html')), + ('^/tips/?$', RecommendationsView.as_view()), + ('^/tips_box/?$', RecommendationsView.as_view(template_name='program/recommendations_box.html')), ('^/shows/?$', ShowListView.as_view()), 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'), + # TODO: implement + ('^/week/?$', TodayScheduleView.as_view()), + ('^/topics/?$', RecommendationsView.as_view(template_name='program/recommendations_box.html')), ) |