summaryrefslogtreecommitdiff
path: root/testapp/exam/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'testapp/exam/urls.py')
-rw-r--r--testapp/exam/urls.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/testapp/exam/urls.py b/testapp/exam/urls.py
index f8a6cb8..d71329c 100644
--- a/testapp/exam/urls.py
+++ b/testapp/exam/urls.py
@@ -6,15 +6,15 @@ urlpatterns = patterns('testapp.exam.views',
url(r'^quizzes/$','quizlist_user'),
url(r'^results/$','results_user'),
url(r'^start/$', 'start'),
- url(r'^start/(?P<questionpaper_id>\d+)/$','start'),
- url(r'^quit/(?P<questionpaper_id>\d+)/$', 'quit'),
+ url(r'^start/(?P<attempt_no>\d+)/(?P<questionpaper_id>\d+)/$','start'),
+ url(r'^quit/(?P<attempt_no>\d+)/(?P<questionpaper_id>\d+)/$', 'quit'),
url(r'^intro/(?P<questionpaper_id>\d+)/$','intro'),
url(r'^complete/$', 'complete'),
- url(r'^complete/(?P<questionpaper_id>\d+)/$', 'complete'),
+ url(r'^complete/(?P<attempt_no>\d+)/(?P<questionpaper_id>\d+)/$', 'complete'),
url(r'^register/$', 'user_register'),
url(r'^(?P<q_id>\d+)/$', 'question'),
url(r'^(?P<q_id>\d+)/check/$', 'check'),
- url(r'^(?P<q_id>\d+)/check/(?P<questionpaper_id>\d+)/$', 'check'),
+ url(r'^(?P<q_id>\d+)/check/(?P<attempt_no>\d+)/(?P<questionpaper_id>\d+)/$', 'check'),
url(r'^intro/$', 'start'),
url(r'^manage/$', 'prof_manage'),