summaryrefslogtreecommitdiff
path: root/yaksh/urls.py
diff options
context:
space:
mode:
authorprathamesh2017-08-14 12:10:42 +0530
committerprathamesh2017-08-14 12:10:42 +0530
commitce995e06e3509a1340061c51dfa08a65c69eef66 (patch)
treed270ccf9792bd2dbbc833e2f08aee4b407356cb9 /yaksh/urls.py
parent1a6006b457a68e6db51315a83a97ec0d9eb631d4 (diff)
downloadonline_test-ce995e06e3509a1340061c51dfa08a65c69eef66.tar.gz
online_test-ce995e06e3509a1340061c51dfa08a65c69eef66.tar.bz2
online_test-ce995e06e3509a1340061c51dfa08a65c69eef66.zip
Front-end modification for improved code server
Added JQuery to handle request. Sends ajax request and gets json as response. json contains token i.e uid which is answer id. Using uid, an ajax request is sent after every 2 secs till the server gives the desire result. If the code result has error then html is written on the document. If the result has correct answer then next question is displayed. *includes function for string will not work for older browers. Will substitute with a different function in next commit.
Diffstat (limited to 'yaksh/urls.py')
-rw-r--r--yaksh/urls.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/yaksh/urls.py b/yaksh/urls.py
index 5270068..6daaf46 100644
--- a/yaksh/urls.py
+++ b/yaksh/urls.py
@@ -20,6 +20,7 @@ urlpatterns = [
views.complete),
url(r'^register/$', views.user_register, name="register"),
url(r'^(?P<q_id>\d+)/check/$', views.check),
+ url(r'^get_results/(?P<uid>\d+)/$', views.get_results),
url(r'^(?P<q_id>\d+)/check/(?P<attempt_num>\d+)/(?P<questionpaper_id>\d+)/$',\
views.check),
url(r'^(?P<q_id>\d+)/skip/(?P<attempt_num>\d+)/(?P<questionpaper_id>\d+)/$',