annotate gpp/urls.py @ 135:13330e1836f3

Cutting forums over to the new common way to add markItUp, extra smileys, and markdown help.
author Brian Neal <bgneal@gmail.com>
date Fri, 27 Nov 2009 03:30:15 +0000
parents 2d299909e074
children e04d91babfcf
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
gremmie@1 4 from news.feeds import LatestNewsFeed
gremmie@1 5
gremmie@1 6 admin.autodiscover()
gremmie@1 7
gremmie@1 8 feeds = {
gremmie@1 9 'news': LatestNewsFeed,
gremmie@1 10 }
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')),
gremmie@1 23 url(r'^feeds/(?P<url>.*)/$',
gremmie@1 24 'django.contrib.syndication.views.feed',
gremmie@1 25 {'feed_dict': feeds },
gremmie@1 26 'feeds-news'),
bgneal@81 27 (r'^forums/', include('forums.urls')),
gremmie@1 28 (r'^irc/', include('irc.urls')),
gremmie@1 29 (r'^links/', include('weblinks.urls')),
gremmie@1 30 (r'^member_map/', include('membermap.urls')),
gremmie@1 31 (r'^messages/', include('messages.urls')),
gremmie@1 32 (r'^news/', include('news.urls')),
gremmie@1 33 (r'^podcast/', include('podcast.urls')),
gremmie@1 34 (r'^polls/', include('polls.urls')),
gremmie@1 35 (r'^potd/', include('potd.urls')),
gremmie@1 36 (r'^profile/', include('bio.urls')),
gremmie@1 37 (r'^shout/', include('shoutbox.urls')),
bgneal@12 38 (r'^smiley/', include('smiley.urls')),
gremmie@1 39 )
gremmie@1 40
gremmie@1 41 if settings.DEBUG:
gremmie@1 42 urlpatterns += patterns('',
gremmie@1 43 (r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
gremmie@1 44 )