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/forum.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/forum.py')
-rw-r--r-- | gnowsys-ndf/gnowsys_ndf/ndf/urls/forum.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gnowsys-ndf/gnowsys_ndf/ndf/urls/forum.py b/gnowsys-ndf/gnowsys_ndf/ndf/urls/forum.py index dbf39a7..35fa4db 100644 --- a/gnowsys-ndf/gnowsys_ndf/ndf/urls/forum.py +++ b/gnowsys-ndf/gnowsys_ndf/ndf/urls/forum.py @@ -2,7 +2,7 @@ from django.conf.urls import patterns, url urlpatterns = patterns('gnowsys_ndf.ndf.views.forum', - url(r'^$', 'forum', name='forum'), + url(r'^[/]$', 'forum', name='forum'), # url(r'^/(?P<node_id>[\w-]+)$', 'forum', name='forum'), url(r'^/create/$', 'create_forum', name='create_forum'), # url(r'^/show/(?P<forum_id>[\w-]+)$', 'display_forum', name='show'), |