gremmie@1: from django.conf.urls.defaults import * bgneal@6: from django.conf import settings gremmie@1: from django.contrib import admin gremmie@1: from news.feeds import LatestNewsFeed gremmie@1: gremmie@1: admin.autodiscover() gremmie@1: gremmie@1: feeds = { gremmie@1: 'news': LatestNewsFeed, gremmie@1: } gremmie@1: gremmie@1: urlpatterns = patterns('', gremmie@1: (r'^admin/doc/', include('django.contrib.admindocs.urls')), gremmie@1: (r'^admin/', include(admin.site.urls)), gremmie@1: (r'^accounts/', include('accounts.urls')), gremmie@1: (r'^calendar/', include('gcalendar.urls')), gremmie@1: (r'^comments/', include('comments.urls')), gremmie@1: (r'^contact/', include('contact.urls')), gremmie@1: (r'^downloads/', include('downloads.urls')), gremmie@1: url(r'^feeds/(?P.*)/$', gremmie@1: 'django.contrib.syndication.views.feed', gremmie@1: {'feed_dict': feeds }, gremmie@1: 'feeds-news'), gremmie@1: (r'^irc/', include('irc.urls')), gremmie@1: (r'^legal/', include('legal.urls')), gremmie@1: (r'^links/', include('weblinks.urls')), gremmie@1: (r'^member_map/', include('membermap.urls')), gremmie@1: (r'^messages/', include('messages.urls')), gremmie@1: (r'^news/', include('news.urls')), gremmie@1: (r'^podcast/', include('podcast.urls')), gremmie@1: (r'^polls/', include('polls.urls')), gremmie@1: (r'^potd/', include('potd.urls')), gremmie@1: (r'^profile/', include('bio.urls')), gremmie@1: (r'^shout/', include('shoutbox.urls')), gremmie@1: ) gremmie@1: gremmie@1: if settings.DEBUG: gremmie@1: urlpatterns += patterns('', gremmie@1: (r'^static/(?P.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}), gremmie@1: )