annotate gpp/news/urls.py @ 153:13d052fbe4f1

Fixing #28, cosmetic issues with member map. Also fixed a bug involving the smiley and markdown interactions. Single quotes were getting HTML REMOVED by markdown.
author Brian Neal <bgneal@gmail.com>
date Sat, 19 Dec 2009 19:34:16 +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 )