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