gremmie@1: from django.conf.urls.defaults import * bgneal@6: from django.conf import settings gremmie@1: from django.contrib import admin bgneal@170: from django.views.decorators.cache import cache_page bgneal@170: from django.contrib.syndication.views import feed as syndication_feed bgneal@170: gremmie@1: from news.feeds import LatestNewsFeed bgneal@170: from forums.feeds import ForumsFeed gremmie@1: bgneal@141: gremmie@1: admin.autodiscover() gremmie@1: gremmie@1: feeds = { gremmie@1: 'news': LatestNewsFeed, bgneal@170: 'forums': ForumsFeed, gremmie@1: } gremmie@1: gremmie@1: urlpatterns = patterns('', bgneal@19: url(r'^$', 'views.home', name='home'), 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')), bgneal@127: (r'^core/', include('core.urls')), bgneal@35: (r'^donations/', include('donations.urls')), gremmie@1: (r'^downloads/', include('downloads.urls')), bgneal@170: url(r'^feeds/(?P.*)/$', bgneal@170: cache_page(syndication_feed, 60 * 15), bgneal@170: {'feed_dict': feeds}, gremmie@1: 'feeds-news'), bgneal@81: (r'^forums/', include('forums.urls')), gremmie@1: (r'^irc/', include('irc.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')), bgneal@12: (r'^smiley/', include('smiley.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: )