annotate gpp/urls.py @ 202:7aa061ed387c

Should have added signals.py in r204.
author Brian Neal <bgneal@gmail.com>
date Wed, 28 Apr 2010 02:58:07 +0000
parents 9b63ad1f2ad2
children 8c1832b9d815
rev   line source
gremmie@1 1 from django.conf.urls.defaults import *
bgneal@6 2 from django.conf import settings
gremmie@1 3 from django.contrib import admin
bgneal@177 4 from django.views.decorators.cache import cache_page
bgneal@170 5
gremmie@1 6 from news.feeds import LatestNewsFeed
bgneal@170 7 from forums.feeds import ForumsFeed
gremmie@1 8
bgneal@141 9
gremmie@1 10 admin.autodiscover()
gremmie@1 11
gremmie@1 12 urlpatterns = patterns('',
bgneal@19 13 url(r'^$', 'views.home', name='home'),
gremmie@1 14 (r'^admin/doc/', include('django.contrib.admindocs.urls')),
gremmie@1 15 (r'^admin/', include(admin.site.urls)),
gremmie@1 16 (r'^accounts/', include('accounts.urls')),
gremmie@1 17 (r'^calendar/', include('gcalendar.urls')),
gremmie@1 18 (r'^comments/', include('comments.urls')),
gremmie@1 19 (r'^contact/', include('contact.urls')),
bgneal@127 20 (r'^core/', include('core.urls')),
bgneal@35 21 (r'^donations/', include('donations.urls')),
gremmie@1 22 (r'^downloads/', include('downloads.urls')),
bgneal@176 23 url(r'^feeds/news/$',
bgneal@177 24 cache_page(LatestNewsFeed(), 6 * 60 * 60),
bgneal@176 25 name='feeds-news'),
bgneal@176 26 url(r'^feeds/forums/$',
bgneal@177 27 cache_page(ForumsFeed(), 1 * 60 * 60),
bgneal@176 28 {'forum_slug': None},
bgneal@176 29 'feeds-forum_combined'),
bgneal@176 30 url(r'^feeds/forums/(?P<forum_slug>[\w\d-]+)/$',
bgneal@177 31 cache_page(ForumsFeed(), 1 * 60 * 60),
bgneal@176 32 name='feeds-forum'),
bgneal@81 33 (r'^forums/', include('forums.urls')),
gremmie@1 34 (r'^irc/', include('irc.urls')),
gremmie@1 35 (r'^links/', include('weblinks.urls')),
gremmie@1 36 (r'^member_map/', include('membermap.urls')),
gremmie@1 37 (r'^messages/', include('messages.urls')),
gremmie@1 38 (r'^news/', include('news.urls')),
gremmie@1 39 (r'^podcast/', include('podcast.urls')),
gremmie@1 40 (r'^polls/', include('polls.urls')),
gremmie@1 41 (r'^potd/', include('potd.urls')),
gremmie@1 42 (r'^profile/', include('bio.urls')),
gremmie@1 43 (r'^shout/', include('shoutbox.urls')),
bgneal@12 44 (r'^smiley/', include('smiley.urls')),
gremmie@1 45 )
gremmie@1 46
gremmie@1 47 if settings.DEBUG:
gremmie@1 48 urlpatterns += patterns('',
gremmie@1 49 (r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
gremmie@1 50 )