diff options
author | dhiru <dhirusingh11@gmail.com> | 2014-05-10 18:07:53 +0530 |
---|---|---|
committer | dhiru <dhirusingh11@gmail.com> | 2014-05-10 18:07:53 +0530 |
commit | 2dfdcce2c241d7b186377913b0b1046d0f7daa3a (patch) | |
tree | 69db98c5e7edb1b6c89fc1cf65af02ddb6676ec1 /gnowsys-ndf/gnowsys_ndf/ndf/urls/forum.py | |
parent | 6f5f14542e91720bce09092a143bd975926cda65 (diff) | |
download | gnowsys-2dfdcce2c241d7b186377913b0b1046d0f7daa3a.tar.gz |
generate new urls
Diffstat (limited to 'gnowsys-ndf/gnowsys_ndf/ndf/urls/forum.py')
-rw-r--r-- | gnowsys-ndf/gnowsys_ndf/ndf/urls/forum.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/gnowsys-ndf/gnowsys_ndf/ndf/urls/forum.py b/gnowsys-ndf/gnowsys_ndf/ndf/urls/forum.py index a7b0e89..d0ea681 100644 --- a/gnowsys-ndf/gnowsys_ndf/ndf/urls/forum.py +++ b/gnowsys-ndf/gnowsys_ndf/ndf/urls/forum.py @@ -1,11 +1,13 @@ from django.conf.urls import patterns, url urlpatterns = patterns('gnowsys_ndf.ndf.views.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'), - url(r'^thread/(?P<thread_id>[\w-]+)$', 'display_thread', name='thread'), - - url(r'^add_node/$','add_node',name="add_node"), + 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'), + url(r'^/(?P<forum_id>[\w-]+)$', 'display_forum', name='show'), + url(r'^/thread/(?P<thread_id>[\w-]+)$', 'display_thread', name='thread'), + url(r'^/(?P<forum_id>[\w-]+)/(?P<thread_id>[\w-]+)$', 'display_thread', name='thread'), + url(r'^/add_node/$','add_node',name="add_node"), ) |