From 080278adea3be10c2b6b10e41f92e722d0c2c8cf Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 13 Dec 2010 14:43:13 -0600 Subject: Move news urls into own file Signed-off-by: Dan McGee --- news/urls.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 news/urls.py (limited to 'news') diff --git a/news/urls.py b/news/urls.py new file mode 100644 index 0000000..548d80e --- /dev/null +++ b/news/urls.py @@ -0,0 +1,14 @@ +from django.conf.urls.defaults import patterns + +urlpatterns = patterns('news.views', + (r'^$', 'news_list', {}, 'news-list'), + (r'^add/$', 'add'), + (r'^preview/$', 'preview'), + (r'^(?P[-\w]+)/$', 'view'), + (r'^(?P[-\w]+)/edit/$', 'edit'), + (r'^(?P[-\w]+)/delete/$', 'delete'), + # old news URLs, permanent redirect view so we don't break all links + (r'^(?P\d+)/$', 'view_redirect'), +) + +# vim: set ts=4 sw=4 et: -- cgit v1.2.3-24-g4f1b