From 0808861705c08aede6c0dc9e07ac891911a7bbfb Mon Sep 17 00:00:00 2001 From: prathamesh Date: Tue, 23 Sep 2014 14:44:47 +0530 Subject: 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. --- testapp/exam/urls.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'testapp/exam/urls.py') 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\d+)/$','start'), - url(r'^quit/(?P\d+)/$', 'quit'), + url(r'^start/(?P\d+)/(?P\d+)/$','start'), + url(r'^quit/(?P\d+)/(?P\d+)/$', 'quit'), url(r'^intro/(?P\d+)/$','intro'), url(r'^complete/$', 'complete'), - url(r'^complete/(?P\d+)/$', 'complete'), + url(r'^complete/(?P\d+)/(?P\d+)/$', 'complete'), url(r'^register/$', 'user_register'), url(r'^(?P\d+)/$', 'question'), url(r'^(?P\d+)/check/$', 'check'), - url(r'^(?P\d+)/check/(?P\d+)/$', 'check'), + url(r'^(?P\d+)/check/(?P\d+)/(?P\d+)/$', 'check'), url(r'^intro/$', 'start'), url(r'^manage/$', 'prof_manage'), -- cgit