From 26f1039ab6d08fea41e0fe1116aa945bf1ce3fe5 Mon Sep 17 00:00:00 2001 From: Avadoot Nachankar Date: Tue, 3 Mar 2015 19:05:15 +0530 Subject: Regex code added to support urls either ending with trailing slash or without trailing slash. --- gnowsys-ndf/gnowsys_ndf/ndf/urls/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gnowsys-ndf/gnowsys_ndf/ndf/urls/module.py') diff --git a/gnowsys-ndf/gnowsys_ndf/ndf/urls/module.py b/gnowsys-ndf/gnowsys_ndf/ndf/urls/module.py index 0cfdcb44..08e05c84 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[\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'), -- cgit v1.2.3-70-g09d2