comparison gpp/news/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 1246a4f1ab4f
comparison
equal deleted inserted replaced
0:900ba3c7b765 1:dbd703f7d63a
1 """urls for the News application"""
2 from django.conf.urls.defaults import *
3
4 urlpatterns = patterns('news.views',
5 url(r'^page/(?P<page>\d+)/$', 'index', name='news-index_page'),
6 url(r'^archive/$', 'archive_index', name='news-archive_index'),
7 url(r'^archive/(?P<year>\d{4})/(?P<month>\d\d?)/page/(?P<page>\d+)/$',
8 'archive',
9 name='news-archive_page'),
10 (r'^categories/$', 'category_index'),
11 (r'^category/(?P<category>\d+)/page/(?P<page>\d+)/$', 'category'),
12 (r'^email/(\d+)/$', 'email_story'),
13 (r'^email/thanks/$', 'email_thanks'),
14 url(r'^search/page/(?P<page>\d+)/$', 'search', name='news-search_page'),
15 (r'^story/(\d+)/$', 'story'),
16 (r'^submit/$', 'submit'),
17 (r'^submit/thanks/$', 'submit_thanks'),
18 url(r'^tags/$', 'tags', name='news-tag_index'),
19 url(r'^tag/(?P<tag_name>[^/]+)/page/(?P<page>\d+)/$',
20 'tag',
21 name='news-tag_page'),
22 )
23
24 urlpatterns += patterns('django.views.generic.simple',
25 (r'^$', 'redirect_to', {'url': 'page/1/'}),
26 )