diff options
author | Avadoot Nachankar <avadoot298@gmail.com> | 2015-03-03 19:05:15 +0530 |
---|---|---|
committer | Avadoot Nachankar <avadoot298@gmail.com> | 2015-03-03 19:05:15 +0530 |
commit | 26f1039ab6d08fea41e0fe1116aa945bf1ce3fe5 (patch) | |
tree | 89e6ae5f31069c8c0a4952487edd76fe84399e5a /gnowsys-ndf/gnowsys_ndf/ndf/urls/task.py | |
parent | a9d17e7fd7678626dc3096ff9f92ff379406c642 (diff) | |
download | gnowsys-26f1039ab6d08fea41e0fe1116aa945bf1ce3fe5.tar.gz |
Regex code added to support urls either ending with trailing slash or without trailing slash.
Diffstat (limited to 'gnowsys-ndf/gnowsys_ndf/ndf/urls/task.py')
-rw-r--r-- | gnowsys-ndf/gnowsys_ndf/ndf/urls/task.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gnowsys-ndf/gnowsys_ndf/ndf/urls/task.py b/gnowsys-ndf/gnowsys_ndf/ndf/urls/task.py index 5a4754d..2d2e3c9 100644 --- a/gnowsys-ndf/gnowsys_ndf/ndf/urls/task.py +++ b/gnowsys-ndf/gnowsys_ndf/ndf/urls/task.py @@ -1,6 +1,6 @@ from django.conf.urls import patterns, url urlpatterns = patterns('gnowsys_ndf.ndf.views.task', - url(r'^$', 'task', name='task'), + url(r'^[/]$', 'task', name='task'), url(r'^/create$', 'create_edit_task', name='task_create_edit'), url(r'^/(?P<task_id>[\w-]+)$', 'task_details', name='task_details'), url(r'^/edit/(?P<task_id>[\w-]+)/$', 'create_edit_task', name='task_edit'), |