Mercurial > public > sg101
diff gpp/urls.py @ 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 | c092efc9ce71 |
children | ddd69a8e07c7 |
line wrap: on
line diff
--- 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')),