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