Mercurial > public > sg101
view 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 |
line wrap: on
line source
from django.conf.urls.defaults import * from django.conf import settings from django.contrib import admin from news.feeds import LatestNewsFeed from forums.feeds import ForumsFeed admin.autodiscover() urlpatterns = patterns('', url(r'^$', 'views.home', name='home'), (r'^admin/doc/', include('django.contrib.admindocs.urls')), (r'^admin/', include(admin.site.urls)), (r'^accounts/', include('accounts.urls')), (r'^calendar/', include('gcalendar.urls')), (r'^comments/', include('comments.urls')), (r'^contact/', include('contact.urls')), (r'^core/', include('core.urls')), (r'^donations/', include('donations.urls')), (r'^downloads/', include('downloads.urls')), url(r'^feeds/news/$', LatestNewsFeed(), name='feeds-news'), url(r'^feeds/forums/$', ForumsFeed(), {'forum_slug': None}, 'feeds-forum_combined'), url(r'^feeds/forums/(?P<forum_slug>[\w\d-]+)/$', ForumsFeed(), name='feeds-forum'), (r'^forums/', include('forums.urls')), (r'^irc/', include('irc.urls')), (r'^links/', include('weblinks.urls')), (r'^member_map/', include('membermap.urls')), (r'^messages/', include('messages.urls')), (r'^news/', include('news.urls')), (r'^podcast/', include('podcast.urls')), (r'^polls/', include('polls.urls')), (r'^potd/', include('potd.urls')), (r'^profile/', include('bio.urls')), (r'^shout/', include('shoutbox.urls')), (r'^smiley/', include('smiley.urls')), ) if settings.DEBUG: urlpatterns += patterns('', (r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}), )