summaryrefslogtreecommitdiff
path: root/yaksh/urls.py
diff options
context:
space:
mode:
authorprathamesh2016-09-23 13:02:27 +0530
committerprathamesh2016-09-23 13:02:27 +0530
commit03e54d7f6a42c0d9207db554abba9da854d494e4 (patch)
treeac05acb7b015faa7fbb986935b3883c603d0f0d2 /yaksh/urls.py
parentf78647307f2e5f858d1c1f74507a8626ec117223 (diff)
downloadonline_test-03e54d7f6a42c0d9207db554abba9da854d494e4.tar.gz
online_test-03e54d7f6a42c0d9207db554abba9da854d494e4.tar.bz2
online_test-03e54d7f6a42c0d9207db554abba9da854d494e4.zip
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.
Diffstat (limited to 'yaksh/urls.py')
-rw-r--r--yaksh/urls.py11
1 files changed, 10 insertions, 1 deletions
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<course_id>\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<mode>[\w\-]+)/(?P<quiz_id>\d+)/$', views.test_quiz)
+ url(r'^manage/grader/$', views.grader, name='grader'),
+ url(r'^manage/regrade/question/(?P<course_id>\d+)/(?P<question_id>\d+)/$',
+ views.regrade, name='regrade'),
+ url(r'^manage/regrade/questionpaper/(?P<course_id>\d+)/(?P<question_id>\d+)/(?P<questionpaper_id>\d+)/$',
+ views.regrade, name='regrade'),
+ url(r'^manage/regrade/answerpaper/(?P<course_id>\d+)/(?P<question_id>\d+)/(?P<answerpaper_id>\d+)/$',
+ views.regrade, name='regrade'),
+ url(r'^manage/regrade/paper/(?P<course_id>\d+)/(?P<answerpaper_id>\d+)/$',
+ views.regrade, name='regrade'),
+ url(r'^manage/(?P<mode>[\w\-]+)/(?P<quiz_id>\d+)/$', views.test_quiz),
]