Mercurial > public > sg101
diff gpp/urls.py @ 177:9b63ad1f2ad2
Fixing #59, again. Django ticket 13093 was fixed allowing cache_page to work in the URLconf.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Mon, 15 Mar 2010 03:26:38 +0000 |
parents | b7ac381996e8 |
children | 8c1832b9d815 |
line wrap: on
line diff
--- a/gpp/urls.py Thu Mar 11 02:34:07 2010 +0000 +++ b/gpp/urls.py Mon Mar 15 03:26:38 2010 +0000 @@ -1,6 +1,7 @@ from django.conf.urls.defaults import * from django.conf import settings from django.contrib import admin +from django.views.decorators.cache import cache_page from news.feeds import LatestNewsFeed from forums.feeds import ForumsFeed @@ -20,14 +21,14 @@ (r'^donations/', include('donations.urls')), (r'^downloads/', include('downloads.urls')), url(r'^feeds/news/$', - LatestNewsFeed(), + cache_page(LatestNewsFeed(), 6 * 60 * 60), name='feeds-news'), url(r'^feeds/forums/$', - ForumsFeed(), + cache_page(ForumsFeed(), 1 * 60 * 60), {'forum_slug': None}, 'feeds-forum_combined'), url(r'^feeds/forums/(?P<forum_slug>[\w\d-]+)/$', - ForumsFeed(), + cache_page(ForumsFeed(), 1 * 60 * 60), name='feeds-forum'), (r'^forums/', include('forums.urls')), (r'^irc/', include('irc.urls')),