comparison 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
comparison
equal deleted inserted replaced
0:900ba3c7b765 1:dbd703f7d63a
1 from django.conf.urls.defaults import *
2
3 import settings
4 from django.contrib import admin
5 from news.feeds import LatestNewsFeed
6
7 admin.autodiscover()
8
9 feeds = {
10 'news': LatestNewsFeed,
11 }
12
13 urlpatterns = patterns('',
14 (r'^admin/doc/', include('django.contrib.admindocs.urls')),
15 (r'^admin/', include(admin.site.urls)),
16 (r'^accounts/', include('accounts.urls')),
17 (r'^calendar/', include('gcalendar.urls')),
18 (r'^comments/', include('comments.urls')),
19 (r'^contact/', include('contact.urls')),
20 (r'^downloads/', include('downloads.urls')),
21 url(r'^feeds/(?P<url>.*)/$',
22 'django.contrib.syndication.views.feed',
23 {'feed_dict': feeds },
24 'feeds-news'),
25 (r'^irc/', include('irc.urls')),
26 (r'^legal/', include('legal.urls')),
27 (r'^links/', include('weblinks.urls')),
28 (r'^member_map/', include('membermap.urls')),
29 (r'^messages/', include('messages.urls')),
30 (r'^news/', include('news.urls')),
31 (r'^podcast/', include('podcast.urls')),
32 (r'^polls/', include('polls.urls')),
33 (r'^potd/', include('potd.urls')),
34 (r'^profile/', include('bio.urls')),
35 (r'^shout/', include('shoutbox.urls')),
36 )
37
38 if settings.DEBUG:
39 urlpatterns += patterns('',
40 (r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
41 )