annotate gpp/urls.py @ 1:dbd703f7d63a

Initial import of sg101 stuff from private repository.
author gremmie
date Mon, 06 Apr 2009 02:43:12 +0000
parents
children b6263ac72052
rev   line source
gremmie@1 1 from django.conf.urls.defaults import *
gremmie@1 2
gremmie@1 3 import settings
gremmie@1 4 from django.contrib import admin
gremmie@1 5 from news.feeds import LatestNewsFeed
gremmie@1 6
gremmie@1 7 admin.autodiscover()
gremmie@1 8
gremmie@1 9 feeds = {
gremmie@1 10 'news': LatestNewsFeed,
gremmie@1 11 }
gremmie@1 12
gremmie@1 13 urlpatterns = patterns('',
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')),
gremmie@1 20 (r'^downloads/', include('downloads.urls')),
gremmie@1 21 url(r'^feeds/(?P<url>.*)/$',
gremmie@1 22 'django.contrib.syndication.views.feed',
gremmie@1 23 {'feed_dict': feeds },
gremmie@1 24 'feeds-news'),
gremmie@1 25 (r'^irc/', include('irc.urls')),
gremmie@1 26 (r'^legal/', include('legal.urls')),
gremmie@1 27 (r'^links/', include('weblinks.urls')),
gremmie@1 28 (r'^member_map/', include('membermap.urls')),
gremmie@1 29 (r'^messages/', include('messages.urls')),
gremmie@1 30 (r'^news/', include('news.urls')),
gremmie@1 31 (r'^podcast/', include('podcast.urls')),
gremmie@1 32 (r'^polls/', include('polls.urls')),
gremmie@1 33 (r'^potd/', include('potd.urls')),
gremmie@1 34 (r'^profile/', include('bio.urls')),
gremmie@1 35 (r'^shout/', include('shoutbox.urls')),
gremmie@1 36 )
gremmie@1 37
gremmie@1 38 if settings.DEBUG:
gremmie@1 39 urlpatterns += patterns('',
gremmie@1 40 (r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
gremmie@1 41 )