diff options
author | prathamesh | 2016-03-30 09:49:19 +0530 |
---|---|---|
committer | prathamesh | 2016-04-01 17:04:56 +0530 |
commit | 0b2a7623a7a5e225ee7a29b438872705b2c4ba5b (patch) | |
tree | 04e80f4dc8a474f23ea18c756e1b9ef770086b10 /yaksh/urls.py | |
parent | d65ba142c47780fe3ff818f583f110453d31a92f (diff) | |
download | online_test-0b2a7623a7a5e225ee7a29b438872705b2c4ba5b.tar.gz online_test-0b2a7623a7a5e225ee7a29b438872705b2c4ba5b.tar.bz2 online_test-0b2a7623a7a5e225ee7a29b438872705b2c4ba5b.zip |
views functions related to exam flow are cleaned-up
Cleaned views various functions related to the exam flow.
That is, introduction, start, check, show questions.
To check prerequisite, can attempt the quiz, start quiz in progress if
time available, get all active quizzes all these functionalities are
shifted from views to models. Still further it has to be cleaned.
For Answerpaper model, made questions, questions_answered and
questions_unanswered manytomany relation with the Question model.
Corrected the testcases.
Diffstat (limited to 'yaksh/urls.py')
-rw-r--r-- | yaksh/urls.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/yaksh/urls.py b/yaksh/urls.py index be33051..53c7b8a 100644 --- a/yaksh/urls.py +++ b/yaksh/urls.py @@ -22,11 +22,10 @@ urlpatterns += patterns('yaksh.views', url(r'^complete/(?P<attempt_num>\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<attempt_num>\d+)/(?P<questionpaper_id>\d+)/$',\ 'check'), - url(r'^intro/$', 'start'), + url(r'^intro/$', 'intro'), url(r'^(?P<q_id>\d+)/(?P<attempt_num>\d+)/(?P<questionpaper_id>\d+)/$', 'show_question'), url(r'^enroll_request/(?P<course_id>\d+)/$', 'enroll_request'), url(r'^self_enroll/(?P<course_id>\d+)/$', 'self_enroll'), @@ -55,12 +54,6 @@ urlpatterns += patterns('yaksh.views', url(r'^manage/designquestionpaper/$', 'design_questionpaper'), url(r'^manage/designquestionpaper/(?P<questionpaper_id>\d+)/$',\ 'design_questionpaper'), - url(r'^manage/designquestionpaper/automatic/(?P<questionpaper_id>\d+)/$',\ - 'automatic_questionpaper'), - url(r'^manage/designquestionpaper/automatic$', 'automatic_questionpaper'), - url(r'^manage/designquestionpaper/manual$', 'manual_questionpaper'), - url(r'^manage/designquestionpaper/manual/(?P<questionpaper_id>\d+)/$',\ - 'manual_questionpaper'), url(r'^manage/statistics/question/(?P<questionpaper_id>\d+)/$', 'show_statistics'), url(r'^manage/statistics/question/(?P<questionpaper_id>\d+)/(?P<attempt_number>\d+)/$', |