from django.conf.urls import patterns, url urlpatterns = patterns('gnowsys_ndf.ndf.views.forum', url(r'^[/]$', 'forum', name='forum'), # url(r'^/(?P[\w-]+)$', 'forum', name='forum'), url(r'^/create/$', 'create_forum', name='create_forum'), # url(r'^/show/(?P[\w-]+)$', 'display_forum', name='show'), url(r'^/edit_forum/(?P[\w-]+)$', 'edit_forum', name='edit_forum'), url(r'^/edit_thread/(?P[\w-]+)/(?P[\w-]+)$', 'edit_thread', name='edit_thread'), url(r'^/delete/(?P[\w-]+)$', 'delete_forum', name='forum_delete'), url(r'^/delete/thread/(?P[\w-]+)/(?P[\w-]+)$', 'delete_thread', name='thread_delete'), url(r'^/delete/reply/(?P[\w-]+)/(?P[\w-]+)/(?P[\w-]+)$', 'delete_reply', name='reply_delete'), url(r'^/(?P[\w-]+)$', 'display_forum', name='show'), url(r'^/(?P[\w-]+)/thread/create/$', 'create_thread', name='create_thread'),### url(r'^/thread/(?P[\w-]+)$', 'display_thread', name='thread'), # url(r'^/(?P[\w-]+)/(?P[\w-]+)$', 'display_thread', name='thread'), url(r'^/add_node/$','add_node',name="add_node"), )