Mercurial > public > sg101
changeset 573:bcc4e8cf841b
For Django 1.4, update to newer versions of cache_page usage.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 02 May 2012 21:00:12 -0500 |
parents | 368d731af479 |
children | ddd69a8e07c7 |
files | gpp/podcast/urls.py gpp/urls.py |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/gpp/podcast/urls.py Wed May 02 20:51:38 2012 -0500 +++ b/gpp/podcast/urls.py Wed May 02 21:00:12 2012 -0500 @@ -11,5 +11,5 @@ urlpatterns = patterns('podcast.views', url(r'^$', 'index', name='podcast-main'), url(r'^(\d+)/$', 'detail', name='podcast-detail'), - url(r'^feed.xml/$', cache_page(feed, 3600), name='podcast-feed'), + url(r'^feed.xml/$', cache_page(3600)(feed), name='podcast-feed'), )
--- a/gpp/urls.py Wed May 02 20:51:38 2012 -0500 +++ b/gpp/urls.py Wed May 02 21:00:12 2012 -0500 @@ -26,14 +26,14 @@ (r'^donations/', include('donations.urls')), (r'^downloads/', include('downloads.urls')), url(r'^feeds/news/$', - cache_page(LatestNewsFeed(), 6 * 60 * 60), + cache_page(6 * 60 * 60)(LatestNewsFeed()), name='feeds-news'), url(r'^feeds/forums/$', - cache_page(ForumsFeed(), 5 * 60), + cache_page(5 * 60)(ForumsFeed()), {'forum_slug': None}, 'feeds-forum_combined'), url(r'^feeds/forums/(?P<forum_slug>[\w\d-]+)/$', - cache_page(ForumsFeed(), 5 * 60), + cache_page(5 * 60)(ForumsFeed()), name='feeds-forum'), (r'^forums/', include('forums.urls')), (r'^irc/', include('irc.urls')),