annotate gpp/urls.py @ 176:b7ac381996e8

Implement ticket #59; update RSS feeds for Django 1.2.
author Brian Neal <bgneal@gmail.com>
date Thu, 11 Mar 2010 02:34:07 +0000
parents 6f14970b103a
children 9b63ad1f2ad2
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@170 4
gremmie@1 5 from news.feeds import LatestNewsFeed
bgneal@170 6 from forums.feeds import ForumsFeed
gremmie@1 7
bgneal@141 8
gremmie@1 9 admin.autodiscover()
gremmie@1 10
gremmie@1 11 urlpatterns = patterns('',
bgneal@19 12 url(r'^$', 'views.home', name='home'),
gremmie@1 13 (r'^admin/doc/', include('django.contrib.admindocs.urls')),
gremmie@1 14 (r'^admin/', include(admin.site.urls)),
gremmie@1 15 (r'^accounts/', include('accounts.urls')),
gremmie@1 16 (r'^calendar/', include('gcalendar.urls')),
gremmie@1 17 (r'^comments/', include('comments.urls')),
gremmie@1 18 (r'^contact/', include('contact.urls')),
bgneal@127 19 (r'^core/', include('core.urls')),
bgneal@35 20 (r'^donations/', include('donations.urls')),
gremmie@1 21 (r'^downloads/', include('downloads.urls')),
bgneal@176 22 url(r'^feeds/news/$',
bgneal@176 23 LatestNewsFeed(),
bgneal@176 24 name='feeds-news'),
bgneal@176 25 url(r'^feeds/forums/$',
bgneal@176 26 ForumsFeed(),
bgneal@176 27 {'forum_slug': None},
bgneal@176 28 'feeds-forum_combined'),
bgneal@176 29 url(r'^feeds/forums/(?P<forum_slug>[\w\d-]+)/$',
bgneal@176 30 ForumsFeed(),
bgneal@176 31 name='feeds-forum'),
bgneal@81 32 (r'^forums/', include('forums.urls')),
gremmie@1 33 (r'^irc/', include('irc.urls')),
gremmie@1 34 (r'^links/', include('weblinks.urls')),
gremmie@1 35 (r'^member_map/', include('membermap.urls')),
gremmie@1 36 (r'^messages/', include('messages.urls')),
gremmie@1 37 (r'^news/', include('news.urls')),
gremmie@1 38 (r'^podcast/', include('podcast.urls')),
gremmie@1 39 (r'^polls/', include('polls.urls')),
gremmie@1 40 (r'^potd/', include('potd.urls')),
gremmie@1 41 (r'^profile/', include('bio.urls')),
gremmie@1 42 (r'^shout/', include('shoutbox.urls')),
bgneal@12 43 (r'^smiley/', include('smiley.urls')),
gremmie@1 44 )
gremmie@1 45
gremmie@1 46 if settings.DEBUG:
gremmie@1 47 urlpatterns += patterns('',
gremmie@1 48 (r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
gremmie@1 49 )