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/group.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gnowsys-ndf/gnowsys_ndf/ndf/urls/group.py') diff --git a/gnowsys-ndf/gnowsys_ndf/ndf/urls/group.py b/gnowsys-ndf/gnowsys_ndf/ndf/urls/group.py index 0c47ad9b..d4ec1b5e 100644 --- a/gnowsys-ndf/gnowsys_ndf/ndf/urls/group.py +++ b/gnowsys-ndf/gnowsys_ndf/ndf/urls/group.py @@ -1,7 +1,7 @@ from django.conf.urls import patterns, url urlpatterns = patterns('gnowsys_ndf.ndf.views.group', - url(r'^$', 'group', name='group'), + url(r'^[/]$', 'group', name='group'), url(r'^/(?P[\w-]+)$', 'group', name='group'), url(r'^/create_group/', 'create_group', name='create_group'), url(r'^/group_publish/(?P[\w-]+)$', 'publish_group', name='publish_group'), -- cgit v1.2.3-70-g09d2