annotate gpp/news/urls.py @ 114:535d02d1c017

Forums: Implemented unread status for topics and posts.
author Brian Neal <bgneal@gmail.com>
date Sun, 11 Oct 2009 20:27:07 +0000
parents dbd703f7d63a
children 1246a4f1ab4f
rev   line source
gremmie@1 1 """urls for the News application"""
gremmie@1 2 from django.conf.urls.defaults import *
gremmie@1 3
gremmie@1 4 urlpatterns = patterns('news.views',
gremmie@1 5 url(r'^page/(?P<page>\d+)/$', 'index', name='news-index_page'),
gremmie@1 6 url(r'^archive/$', 'archive_index', name='news-archive_index'),
gremmie@1 7 url(r'^archive/(?P<year>\d{4})/(?P<month>\d\d?)/page/(?P<page>\d+)/$',
gremmie@1 8 'archive',
gremmie@1 9 name='news-archive_page'),
gremmie@1 10 (r'^categories/$', 'category_index'),
gremmie@1 11 (r'^category/(?P<category>\d+)/page/(?P<page>\d+)/$', 'category'),
gremmie@1 12 (r'^email/(\d+)/$', 'email_story'),
gremmie@1 13 (r'^email/thanks/$', 'email_thanks'),
gremmie@1 14 url(r'^search/page/(?P<page>\d+)/$', 'search', name='news-search_page'),
gremmie@1 15 (r'^story/(\d+)/$', 'story'),
gremmie@1 16 (r'^submit/$', 'submit'),
gremmie@1 17 (r'^submit/thanks/$', 'submit_thanks'),
gremmie@1 18 url(r'^tags/$', 'tags', name='news-tag_index'),
gremmie@1 19 url(r'^tag/(?P<tag_name>[^/]+)/page/(?P<page>\d+)/$',
gremmie@1 20 'tag',
gremmie@1 21 name='news-tag_page'),
gremmie@1 22 )
gremmie@1 23
gremmie@1 24 urlpatterns += patterns('django.views.generic.simple',
gremmie@1 25 (r'^$', 'redirect_to', {'url': 'page/1/'}),
gremmie@1 26 )