# HG changeset patch # User Brian Neal # Date 1336010412 18000 # Node ID bcc4e8cf841b2ac41762cf1a69235fefdb9e57df # Parent 368d731af4792879c16c395d46f430d31750b039 For Django 1.4, update to newer versions of cache_page usage. diff -r 368d731af479 -r bcc4e8cf841b gpp/podcast/urls.py --- 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'), ) diff -r 368d731af479 -r bcc4e8cf841b gpp/urls.py --- 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[\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')),