annotate news/urls.py @ 1124:5f63cd3db8cc

Put back 10 years of SG101 banners.
author Brian Neal <bgneal@gmail.com>
date Wed, 17 Aug 2016 20:43:35 -0500
parents 5ba2508939f7
children 97f92a589de7
rev   line source
gremmie@1 1 """urls for the News application"""
bgneal@1028 2 from django.conf.urls import url
gremmie@1 3
bgneal@1028 4 import news.views
bgneal@1028 5
bgneal@1028 6
bgneal@1028 7 urlpatterns = [
bgneal@1028 8 url(r'^date/$', news.views.index, name='news-index_page'),
bgneal@1028 9 url(r'^archive/$', news.views.archive_index, name='news-archive_index'),
bgneal@240 10 url(r'^archive/(?P<year>\d{4})/(?P<month>\d\d?)/$',
bgneal@1028 11 news.views.archive,
bgneal@240 12 name='news-archive_page'),
bgneal@1028 13 url(r'^categories/$', news.views.category_index, name='news-category_index'),
bgneal@1028 14 url(r'^category/(?P<slug>[\w\d-]+)/$', news.views.category, name='news-category'),
bgneal@1028 15 url(r'^email/(\d+)/$', news.views.email_story, name='news-email_story'),
bgneal@1028 16 url(r'^email/thanks/$', news.views.email_thanks, name='news-email_thanks'),
bgneal@1028 17 url(r'^story/(\d+)/$', news.views.story, name='news-story'),
bgneal@1028 18 url(r'^submit/$', news.views.submit, name='news-submit'),
bgneal@1028 19 url(r'^submit/thanks/$', news.views.submit_thanks, name='news-submit_thanks'),
bgneal@1028 20 url(r'^tags/$', news.views.tags, name='news-tag_index'),
bgneal@1028 21 url(r'^tag/(?P<tag_name>[^/]+)/$', news.views.tag, name='news-tag_page'),
bgneal@1028 22 ]