From 51a93b42b1d7b3a94e227796aa8d4f6e97de9929 Mon Sep 17 00:00:00 2001 From: prathamesh Date: Wed, 27 Dec 2017 17:32:21 +0530 Subject: Exercise feature in video lessons Exercise is same as quiz except for following differences: - no time limit - no marks weightage - no instruction page - skip denied for a particular time An attribute 'is_exercise' in Quiz determines whether the quiz is exercise or not. Questions contains 'min_time' attribute. For an exercise a question cannot be skipped for an allotted minimum time, after which either django or JavaScript makes Next button available. Implementation is as such due to complexity of our existing views and templates. Also, after min_time, same question with Next button is available to move on, assuming that solution is present in the video. --- yaksh/urls.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'yaksh/urls.py') diff --git a/yaksh/urls.py b/yaksh/urls.py index 716a7d0..f7df456 100644 --- a/yaksh/urls.py +++ b/yaksh/urls.py @@ -49,6 +49,9 @@ urlpatterns = [ url(r'^manage/addquestion/(?P\d+)/$', views.add_question, name="add_question"), url(r'^manage/addquiz/$', views.add_quiz, name='add_quiz'), + url(r'^manage/add_exercise/$', views.add_exercise, name='add_exercise'), + url(r'^manage/add_exercise/(?P\d+)/$', views.add_exercise, + name='add_exercise'), url(r'^manage/addquiz/(?P\d+)/$', views.add_quiz, name='edit_quiz'), url(r'^manage/addquiz/(?P\d+)/(?P\d+)$', -- cgit From e14514e01052fb36cd9f14675cbe7ca940945a34 Mon Sep 17 00:00:00 2001 From: prathamesh Date: Tue, 2 Jan 2018 16:46:52 +0530 Subject: Allowed user to skip and view solution if the answer is correct. Added solution attribute to the Question model. --- yaksh/urls.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'yaksh/urls.py') diff --git a/yaksh/urls.py b/yaksh/urls.py index f7df456..b4bbb41 100644 --- a/yaksh/urls.py +++ b/yaksh/urls.py @@ -51,7 +51,9 @@ urlpatterns = [ url(r'^manage/addquiz/$', views.add_quiz, name='add_quiz'), url(r'^manage/add_exercise/$', views.add_exercise, name='add_exercise'), url(r'^manage/add_exercise/(?P\d+)/$', views.add_exercise, - name='add_exercise'), + name='edit_exercise'), + url(r'^manage/add_exercise/(?P\d+)/(?P\d+)/$', + views.add_exercise, name='edit_exercise'), url(r'^manage/addquiz/(?P\d+)/$', views.add_quiz, name='edit_quiz'), url(r'^manage/addquiz/(?P\d+)/(?P\d+)$', -- cgit