gremmie@1: """urls for the News application""" bgneal@1028: from django.conf.urls import url gremmie@1: bgneal@1028: import news.views bgneal@1028: bgneal@1028: bgneal@1028: urlpatterns = [ bgneal@1028: url(r'^date/$', news.views.index, name='news-index_page'), bgneal@1028: url(r'^archive/$', news.views.archive_index, name='news-archive_index'), bgneal@240: url(r'^archive/(?P\d{4})/(?P\d\d?)/$', bgneal@1028: news.views.archive, bgneal@240: name='news-archive_page'), bgneal@1028: url(r'^categories/$', news.views.category_index, name='news-category_index'), bgneal@1028: url(r'^category/(?P[\w\d-]+)/$', news.views.category, name='news-category'), bgneal@1028: url(r'^email/(\d+)/$', news.views.email_story, name='news-email_story'), bgneal@1028: url(r'^email/thanks/$', news.views.email_thanks, name='news-email_thanks'), bgneal@1028: url(r'^story/(\d+)/$', news.views.story, name='news-story'), bgneal@1028: url(r'^submit/$', news.views.submit, name='news-submit'), bgneal@1028: url(r'^submit/thanks/$', news.views.submit_thanks, name='news-submit_thanks'), bgneal@1028: url(r'^tags/$', news.views.tags, name='news-tag_index'), bgneal@1028: url(r'^tag/(?P[^/]+)/$', news.views.tag, name='news-tag_page'), bgneal@1028: ]