1
2
3
4
5
6
7
8
9
10
11
12
13
|
from django.conf.urls import patterns, url
urlpatterns = patterns('gnowsys_ndf.ndf.views.quiz',
url(r'^[/]$', 'quiz', name='quiz'),
url(r'^/(?P<app_id>[\w-]+)$', 'quiz', name='quiz'),
url(r'^/question/create', 'create_edit_quiz_item', name='quiz_item_create'),
url(r'^/create/', 'create_edit_quiz', name='quiz_create'),
url(r'^/details/(?P<app_id>[\w-]+)$', 'quiz', name='quiz_details'),
url(r'^/question/edit/(?P<node_id>[\w-]+)$', 'create_edit_quiz_item', name='quiz_item_edit'),
url(r'^/edit/(?P<node_id>[\w-]+)$', 'create_edit_quiz', name='quiz_edit'),
# url(r'^(?P<node_id>[\w-]+)/version/(?P<version_no>\d+\.\d+)$', 'version_node', name='node_version'),
)
|