diff options
author | prathamesh | 2014-09-23 14:44:47 +0530 |
---|---|---|
committer | prathamesh | 2014-09-23 14:44:47 +0530 |
commit | 0808861705c08aede6c0dc9e07ac891911a7bbfb (patch) | |
tree | 729d56c50370070b9e08f44f68a3ce91f9235534 /testapp/exam/urls.py | |
parent | 962cee1705509bb595cda51d104ef1ef7cf0b4fd (diff) | |
download | online_test-0808861705c08aede6c0dc9e07ac891911a7bbfb.tar.gz online_test-0808861705c08aede6c0dc9e07ac891911a7bbfb.tar.bz2 online_test-0808861705c08aede6c0dc9e07ac891911a7bbfb.zip |
Models and views modified.
Added number of attempts option for quiz.
Also days lag between two attempts.
added test status and attempt number for the test.
Removed profile foreign key from answer paper models
since user foreign key is present in the answer paper model.
Urls slightly modified to include attemt number for a given quiz.
Diffstat (limited to 'testapp/exam/urls.py')
-rw-r--r-- | testapp/exam/urls.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/testapp/exam/urls.py b/testapp/exam/urls.py index 37a031d..d553941 100644 --- a/testapp/exam/urls.py +++ b/testapp/exam/urls.py @@ -6,15 +6,15 @@ urlpatterns = patterns('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'), |