summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2011-12-29 16:08:17 (GMT)
committerErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2011-12-29 16:08:17 (GMT)
commit6b2a8fdb4a258c1273a6b49fef81d9aa3ccfd733 (patch)
tree69f8182f73f46896354ee879611a435cda7e5561 /program
parent92fc8037e32dae0e17e25a92a79c992645b27b3a (diff)
enabled cache for current_how view
Diffstat (limited to 'program')
-rw-r--r--program/urls.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/program/urls.py b/program/urls.py
index 8ec547d..3aa1245 100644
--- a/program/urls.py
+++ b/program/urls.py
@@ -1,5 +1,6 @@
from django.conf import settings
from django.conf.urls.defaults import *
+from django.views.decorators.cache import cache_page
from django.views.generic.list_detail import object_detail, object_list
from models import Host, Show, TimeSlot
@@ -25,7 +26,7 @@ urlpatterns = patterns('',
url(r'^today/?$', day_schedule),
url(r'^(?P<year>\d{4})/(?P<month>\d{1,2})/(?P<day>\d{1,2})/?$', day_schedule),
url(r'^(?P<year>\d{4})/(?P<week>\d{1,2})/?$', week_schedule),
- url(r'^current_box/?$', current_show),
+ url(r'^current_box/?$', cache_page(current_show, 60)),
url(r'^hosts/?$', object_list, hosts_dict),
url(r'^hosts/(?P<object_id>\d+)/?$', object_detail, hosts_dict, name='host-detail'),
url(r'^tips/?$', recommendations),