diff options
author | Dan McGee <dan@archlinux.org> | 2010-12-13 21:56:43 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-12-13 21:56:43 +0100 |
commit | 6e3dc1be01ac0e5d0fb08142abfc1417eb924871 (patch) | |
tree | 4b320617813a94430c0f1e6ee195b95a86119cce /todolists | |
parent | 080278adea3be10c2b6b10e41f92e722d0c2c8cf (diff) | |
download | archweb-6e3dc1be01ac0e5d0fb08142abfc1417eb924871.tar.gz archweb-6e3dc1be01ac0e5d0fb08142abfc1417eb924871.tar.xz |
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')
-rw-r--r-- | todolists/urls.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/todolists/urls.py b/todolists/urls.py new file mode 100644 index 0000000..187d482 --- /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: |