annotate gpp/urls.py @ 217:237710206167

Update TinyMCE to 3.3.6
author Brian Neal <bgneal@gmail.com>
date Tue, 01 Jun 2010 04:49:29 +0000
parents 8c1832b9d815
children 26ee684c2033
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
bgneal@177 4 from django.views.decorators.cache import cache_page
bgneal@170 5
gremmie@1 6 from news.feeds import LatestNewsFeed
bgneal@170 7 from forums.feeds import ForumsFeed
gremmie@1 8
bgneal@141 9
gremmie@1 10 admin.autodiscover()
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')),
bgneal@215 17 (r'^antispam/', include('antispam.urls')),
gremmie@1 18 (r'^calendar/', include('gcalendar.urls')),
gremmie@1 19 (r'^comments/', include('comments.urls')),
gremmie@1 20 (r'^contact/', include('contact.urls')),
bgneal@127 21 (r'^core/', include('core.urls')),
bgneal@35 22 (r'^donations/', include('donations.urls')),
gremmie@1 23 (r'^downloads/', include('downloads.urls')),
bgneal@176 24 url(r'^feeds/news/$',
bgneal@177 25 cache_page(LatestNewsFeed(), 6 * 60 * 60),
bgneal@176 26 name='feeds-news'),
bgneal@176 27 url(r'^feeds/forums/$',
bgneal@177 28 cache_page(ForumsFeed(), 1 * 60 * 60),
bgneal@176 29 {'forum_slug': None},
bgneal@176 30 'feeds-forum_combined'),
bgneal@176 31 url(r'^feeds/forums/(?P<forum_slug>[\w\d-]+)/$',
bgneal@177 32 cache_page(ForumsFeed(), 1 * 60 * 60),
bgneal@176 33 name='feeds-forum'),
bgneal@81 34 (r'^forums/', include('forums.urls')),
gremmie@1 35 (r'^irc/', include('irc.urls')),
gremmie@1 36 (r'^links/', include('weblinks.urls')),
gremmie@1 37 (r'^member_map/', include('membermap.urls')),
gremmie@1 38 (r'^messages/', include('messages.urls')),
gremmie@1 39 (r'^news/', include('news.urls')),
gremmie@1 40 (r'^podcast/', include('podcast.urls')),
gremmie@1 41 (r'^polls/', include('polls.urls')),
gremmie@1 42 (r'^potd/', include('potd.urls')),
gremmie@1 43 (r'^profile/', include('bio.urls')),
gremmie@1 44 (r'^shout/', include('shoutbox.urls')),
bgneal@12 45 (r'^smiley/', include('smiley.urls')),
gremmie@1 46 )
gremmie@1 47
gremmie@1 48 if settings.DEBUG:
gremmie@1 49 urlpatterns += patterns('',
gremmie@1 50 (r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
gremmie@1 51 )