summaryrefslogtreecommitdiff
path: root/news/urls.py
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2010-12-31 15:42:55 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2010-12-31 15:42:55 -0300
commitc9178286885d60741eb0e696c3e345e3b0dfb9e2 (patch)
tree7738211d84337e897acfd2263be0b33352becae0 /news/urls.py
parentebcd492d39cd0525b768a48558e50041aa0961e3 (diff)
parent84897adcdc698678f2ee8d2292cfe4271c6335e4 (diff)
Merge git://projects.archlinux.org/archweb
Conflicts: templates/public/index.html urls.py
Diffstat (limited to 'news/urls.py')
-rw-r--r--news/urls.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/news/urls.py b/news/urls.py
new file mode 100644
index 00000000..548d80ea
--- /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<slug>[-\w]+)/$', 'view'),
+ (r'^(?P<slug>[-\w]+)/edit/$', 'edit'),
+ (r'^(?P<slug>[-\w]+)/delete/$', 'delete'),
+ # old news URLs, permanent redirect view so we don't break all links
+ (r'^(?P<object_id>\d+)/$', 'view_redirect'),
+)
+
+# vim: set ts=4 sw=4 et: