From 03e54d7f6a42c0d9207db554abba9da854d494e4 Mon Sep 17 00:00:00 2001 From: prathamesh Date: Fri, 23 Sep 2016 13:02:27 +0530 Subject: Regrade Feature A question can be regraded for a given quiz. Whole quiz can be regraded. Particular user paper can be regraded. Moved validate_answer from views to models. regrade method also updates the answer i.e. marks and correctness. Also, the answer paper percentage is updated. --- yaksh/urls.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'yaksh/urls.py') diff --git a/yaksh/urls.py b/yaksh/urls.py index daa6008..bbc5bdc 100644 --- a/yaksh/urls.py +++ b/yaksh/urls.py @@ -101,5 +101,14 @@ urlpatterns += [ url(r'^manage/remove_teachers/(?P\d+)/$', views.remove_teachers, name='remove_teacher'), url(r'^manage/download_questions/$', views.show_all_questions), url(r'^manage/upload_questions/$', views.show_all_questions), - url(r'^manage/(?P[\w\-]+)/(?P\d+)/$', views.test_quiz) + url(r'^manage/grader/$', views.grader, name='grader'), + url(r'^manage/regrade/question/(?P\d+)/(?P\d+)/$', + views.regrade, name='regrade'), + url(r'^manage/regrade/questionpaper/(?P\d+)/(?P\d+)/(?P\d+)/$', + views.regrade, name='regrade'), + url(r'^manage/regrade/answerpaper/(?P\d+)/(?P\d+)/(?P\d+)/$', + views.regrade, name='regrade'), + url(r'^manage/regrade/paper/(?P\d+)/(?P\d+)/$', + views.regrade, name='regrade'), + url(r'^manage/(?P[\w\-]+)/(?P\d+)/$', views.test_quiz), ] -- cgit