Mercurial > public > sg101
comparison news/urls.py @ 581:ee87ea74d46b
For Django 1.4, rearranged project structure for new manage.py.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 05 May 2012 17:10:48 -0500 |
parents | gpp/news/urls.py@ddd69a8e07c7 |
children | e2c3d7ecfa30 |
comparison
equal
deleted
inserted
replaced
580:c525f3e0b5d0 | 581:ee87ea74d46b |
---|---|
1 """urls for the News application""" | |
2 from django.conf.urls import patterns, url | |
3 | |
4 urlpatterns = patterns('news.views', | |
5 url(r'^date/$', '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?)/$', | |
8 'archive', | |
9 name='news-archive_page'), | |
10 url(r'^categories/$', 'category_index', name='news-category_index'), | |
11 url(r'^category/(?P<slug>[\w\d-]+)/$', 'category', name='news-category'), | |
12 url(r'^email/(\d+)/$', 'email_story', name='news-email_story'), | |
13 url(r'^email/thanks/$', 'email_thanks', name='news-email_thanks'), | |
14 url(r'^story/(\d+)/$', 'story', name='news-story'), | |
15 url(r'^submit/$', 'submit', name='news-submit'), | |
16 url(r'^submit/thanks/$', 'submit_thanks', name='news-submit_thanks'), | |
17 url(r'^tags/$', 'tags', name='news-tag_index'), | |
18 url(r'^tag/(?P<tag_name>[^/]+)/$', 'tag', name='news-tag_page'), | |
19 ) |