comparison gpp/podcast/urls.py @ 403:6e425c9b9d16

In support of #161; improve query performance of the feed view; also cache the feed view in urls.py.
author Brian Neal <bgneal@gmail.com>
date Sun, 27 Mar 2011 18:22:48 +0000
parents dbd703f7d63a
children bcc4e8cf841b
comparison
equal deleted inserted replaced
402:9175392da056 403:6e425c9b9d16
1 """urls for the podcast application""" 1 """
2 urls for the podcast application
3
4 """
2 from django.conf.urls.defaults import * 5 from django.conf.urls.defaults import *
6 from django.views.decorators.cache import cache_page
7
8 from podcast.views import feed
9
3 10
4 urlpatterns = patterns('podcast.views', 11 urlpatterns = patterns('podcast.views',
5 url(r'^$', 'index', name='podcast-main'), 12 url(r'^$', 'index', name='podcast-main'),
6 (r'^(\d+)/$', 'detail'), 13 url(r'^(\d+)/$', 'detail', name='podcast-detail'),
7 (r'^feed.xml/$', 'feed'), 14 url(r'^feed.xml/$', cache_page(feed, 3600), name='podcast-feed'),
8 ) 15 )