diff options
author | Prabhu Ramachandran | 2011-11-14 14:36:13 +0530 |
---|---|---|
committer | Prabhu Ramachandran | 2011-11-14 14:36:13 +0530 |
commit | 67e1fa3bc43792028f78161e2c9d04ae97d1ac56 (patch) | |
tree | ba694d71628de2da9b912f41a6733706def12db8 /exam | |
parent | 10b194427d5a14f56257db1eb865b4f2024f414c (diff) | |
download | online_test-67e1fa3bc43792028f78161e2c9d04ae97d1ac56.tar.gz online_test-67e1fa3bc43792028f78161e2c9d04ae97d1ac56.tar.bz2 online_test-67e1fa3bc43792028f78161e2c9d04ae97d1ac56.zip |
ENH: Adding an intro page for users
This page provides instructions and rules to the users of the system.
Diffstat (limited to 'exam')
-rw-r--r-- | exam/views.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/exam/views.py b/exam/views.py index 560181a..e6c9b55 100644 --- a/exam/views.py +++ b/exam/views.py @@ -117,9 +117,12 @@ def start(request): new_quiz.questions = "|".join(questions) new_quiz.save() - q = new_quiz.current_question() - - return show_question(request, q) + + # Show the user the intro page. + context = {'user': user} + ci = RequestContext(request) + return render_to_response('exam/intro.html', context, + context_instance=ci) def question(request, q_id): user = request.user |