summaryrefslogtreecommitdiff
path: root/program/urls.py
diff options
context:
space:
mode:
authorErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2011-03-22 14:37:10 (GMT)
committerErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2011-03-22 14:37:10 (GMT)
commita48df664dd9da38b02b3dc0c82a7eb4969db5b96 (patch)
treeea9a5518bf673886873551e0c610feba71f40858 /program/urls.py
parentbc4e14f6bd7b8df7988f547a02aa52f8065c6e43 (diff)
added week schedule view.
Diffstat (limited to 'program/urls.py')
-rw-r--r--program/urls.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/program/urls.py b/program/urls.py
index 318ae99..6e7da79 100644
--- a/program/urls.py
+++ b/program/urls.py
@@ -3,11 +3,12 @@ from django.views.generic.detail import DetailView
from django.views.generic.list import ListView
from models import Host, Show, TimeSlot
-from views import CurrentShowView, DayScheduleView, RecommendationsView, ShowListView, TodayScheduleView
+from views import CurrentShowView, DayScheduleView, RecommendationsView, ShowListView, TodayScheduleView, WeekScheduleView
urlpatterns = patterns('',
('^$', 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/$', CurrentShowView.as_view()),
('^hosts/$', ListView.as_view(model=Host, context_object_name='hosts')),
url('^host/(?P<pk>\d+)/$', DetailView.as_view(model=Host), name='host-detail'),