summaryrefslogtreecommitdiff
path: root/exam/urls.py
diff options
context:
space:
mode:
authorPrabhu Ramachandran2011-11-21 02:41:27 +0530
committerPrabhu Ramachandran2011-11-21 02:41:27 +0530
commitc2185243e9e3e8a66a2a4c7a549d9bc00fd9f2fa (patch)
tree6109a8f027139e8d86d58bc0cb6f147b29c31d9c /exam/urls.py
parent8f7b25c5639dbe7912df35ea94dfb665d74d0107 (diff)
downloadonline_test-c2185243e9e3e8a66a2a4c7a549d9bc00fd9f2fa.tar.gz
online_test-c2185243e9e3e8a66a2a4c7a549d9bc00fd9f2fa.tar.bz2
online_test-c2185243e9e3e8a66a2a4c7a549d9bc00fd9f2fa.zip
ENH: Better monitor reporting and user_data info
This checkin adds the following: - /exam/monitor displays all available quizzes. - /exam/monitor/quiz_id displays results for the specified quiz. - /exam/user_data/username displays the users data including answers. - A link is provided in monitor output to see user data. - More monitor data like number of attempts. - The monitor and user data are only shown for a user who is authenticated and is staff.
Diffstat (limited to 'exam/urls.py')
-rw-r--r--exam/urls.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/exam/urls.py b/exam/urls.py
index e517adb..129a83f 100644
--- a/exam/urls.py
+++ b/exam/urls.py
@@ -8,6 +8,8 @@ urlpatterns = patterns('exam.views',
url(r'^quit/$', 'quit'),
url(r'^complete/$', 'complete'),
url(r'^monitor/$', 'monitor'),
+ url(r'^monitor/(?P<quiz_id>\d+)/$', 'monitor'),
+ url(r'^user_data/(?P<username>[a-zA-Z0-9_.]+)/$', 'user_data'),
url(r'^(?P<q_id>\d+)/$', 'question'),
url(r'^(?P<q_id>\d+)/check/$', 'check'),
)