Mercurial > public > sg101
comparison 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 |
comparison
equal
deleted
inserted
replaced
176:b7ac381996e8 | 177:9b63ad1f2ad2 |
---|---|
1 from django.conf.urls.defaults import * | 1 from django.conf.urls.defaults import * |
2 from django.conf import settings | 2 from django.conf import settings |
3 from django.contrib import admin | 3 from django.contrib import admin |
4 from django.views.decorators.cache import cache_page | |
4 | 5 |
5 from news.feeds import LatestNewsFeed | 6 from news.feeds import LatestNewsFeed |
6 from forums.feeds import ForumsFeed | 7 from forums.feeds import ForumsFeed |
7 | 8 |
8 | 9 |
18 (r'^contact/', include('contact.urls')), | 19 (r'^contact/', include('contact.urls')), |
19 (r'^core/', include('core.urls')), | 20 (r'^core/', include('core.urls')), |
20 (r'^donations/', include('donations.urls')), | 21 (r'^donations/', include('donations.urls')), |
21 (r'^downloads/', include('downloads.urls')), | 22 (r'^downloads/', include('downloads.urls')), |
22 url(r'^feeds/news/$', | 23 url(r'^feeds/news/$', |
23 LatestNewsFeed(), | 24 cache_page(LatestNewsFeed(), 6 * 60 * 60), |
24 name='feeds-news'), | 25 name='feeds-news'), |
25 url(r'^feeds/forums/$', | 26 url(r'^feeds/forums/$', |
26 ForumsFeed(), | 27 cache_page(ForumsFeed(), 1 * 60 * 60), |
27 {'forum_slug': None}, | 28 {'forum_slug': None}, |
28 'feeds-forum_combined'), | 29 'feeds-forum_combined'), |
29 url(r'^feeds/forums/(?P<forum_slug>[\w\d-]+)/$', | 30 url(r'^feeds/forums/(?P<forum_slug>[\w\d-]+)/$', |
30 ForumsFeed(), | 31 cache_page(ForumsFeed(), 1 * 60 * 60), |
31 name='feeds-forum'), | 32 name='feeds-forum'), |
32 (r'^forums/', include('forums.urls')), | 33 (r'^forums/', include('forums.urls')), |
33 (r'^irc/', include('irc.urls')), | 34 (r'^irc/', include('irc.urls')), |
34 (r'^links/', include('weblinks.urls')), | 35 (r'^links/', include('weblinks.urls')), |
35 (r'^member_map/', include('membermap.urls')), | 36 (r'^member_map/', include('membermap.urls')), |