summaryrefslogtreecommitdiff
path: root/todolists/urls.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-12-13 14:56:43 -0600
committerDan McGee <dan@archlinux.org>2010-12-13 14:56:43 -0600
commit6e3dc1be01ac0e5d0fb08142abfc1417eb924871 (patch)
tree4b320617813a94430c0f1e6ee195b95a86119cce /todolists/urls.py
parent080278adea3be10c2b6b10e41f92e722d0c2c8cf (diff)
Move more URLs out of root urlconf
Things are a bit cleaner now. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'todolists/urls.py')
-rw-r--r--todolists/urls.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/todolists/urls.py b/todolists/urls.py
new file mode 100644
index 00000000..187d4820
--- /dev/null
+++ b/todolists/urls.py
@@ -0,0 +1,13 @@
+from django.conf.urls.defaults import patterns
+
+urlpatterns = patterns('todolists.views',
+ (r'^$', 'list'),
+ (r'^(\d+)/$', 'view'),
+ (r'^add/$', 'add'),
+ (r'^edit/(?P<list_id>\d+)/$', 'edit'),
+ (r'^flag/(\d+)/(\d+)/$', 'flag'),
+ (r'^delete/(?P<object_id>\d+)/$',
+ 'delete_todolist'),
+)
+
+# vim: set ts=4 sw=4 et: