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/module.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/module.py')
-rw-r--r-- | gnowsys-ndf/gnowsys_ndf/ndf/urls/module.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gnowsys-ndf/gnowsys_ndf/ndf/urls/module.py b/gnowsys-ndf/gnowsys_ndf/ndf/urls/module.py index 0cfdcb4..08e05c8 100644 --- a/gnowsys-ndf/gnowsys_ndf/ndf/urls/module.py +++ b/gnowsys-ndf/gnowsys_ndf/ndf/urls/module.py @@ -1,7 +1,7 @@ from django.conf.urls import patterns, url urlpatterns = patterns('gnowsys_ndf.ndf.views.module', - url(r'^$', 'module', name='module'), + url(r'^[/]$', 'module', name='module'), # url(r'^(?P<module_id>[\w-]+)$', 'module', name='module'), url(r'^/delete_module/(?P<_id>[\w-]+)$', 'delete_module', name='delete_module'), url(r'^/module_detail/(?P<_id>[\w-]+)$', 'module_detail', name='module_detail'), |