annotate gpp/urls.py @ 139:e04d91babfcf

Close #30. Create an admin dashboard to see pending content and requests for admin action.
author Brian Neal <bgneal@gmail.com>
date Sun, 29 Nov 2009 22:33:15 +0000
parents 2d299909e074
children 861f7d5f1b23
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
bgneal@139 6 # Use the default admin site, but tell it to use a custom
bgneal@139 7 # index template:
bgneal@139 8 admin.site.index_template = 'admin/custom_index.html'
gremmie@1 9 admin.autodiscover()
gremmie@1 10
gremmie@1 11 feeds = {
gremmie@1 12 'news': LatestNewsFeed,
gremmie@1 13 }
gremmie@1 14
gremmie@1 15 urlpatterns = patterns('',
bgneal@19 16 url(r'^$', 'views.home', name='home'),
gremmie@1 17 (r'^admin/doc/', include('django.contrib.admindocs.urls')),
gremmie@1 18 (r'^admin/', include(admin.site.urls)),
gremmie@1 19 (r'^accounts/', include('accounts.urls')),
gremmie@1 20 (r'^calendar/', include('gcalendar.urls')),
gremmie@1 21 (r'^comments/', include('comments.urls')),
gremmie@1 22 (r'^contact/', include('contact.urls')),
bgneal@127 23 (r'^core/', include('core.urls')),
bgneal@35 24 (r'^donations/', include('donations.urls')),
gremmie@1 25 (r'^downloads/', include('downloads.urls')),
gremmie@1 26 url(r'^feeds/(?P<url>.*)/$',
gremmie@1 27 'django.contrib.syndication.views.feed',
gremmie@1 28 {'feed_dict': feeds },
gremmie@1 29 'feeds-news'),
bgneal@81 30 (r'^forums/', include('forums.urls')),
gremmie@1 31 (r'^irc/', include('irc.urls')),
gremmie@1 32 (r'^links/', include('weblinks.urls')),
gremmie@1 33 (r'^member_map/', include('membermap.urls')),
gremmie@1 34 (r'^messages/', include('messages.urls')),
gremmie@1 35 (r'^news/', include('news.urls')),
gremmie@1 36 (r'^podcast/', include('podcast.urls')),
gremmie@1 37 (r'^polls/', include('polls.urls')),
gremmie@1 38 (r'^potd/', include('potd.urls')),
gremmie@1 39 (r'^profile/', include('bio.urls')),
gremmie@1 40 (r'^shout/', include('shoutbox.urls')),
bgneal@12 41 (r'^smiley/', include('smiley.urls')),
gremmie@1 42 )
gremmie@1 43
gremmie@1 44 if settings.DEBUG:
gremmie@1 45 urlpatterns += patterns('',
gremmie@1 46 (r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
gremmie@1 47 )