From b4023e17d6f97e51ffde740c17d19630b5a9c2d1 Mon Sep 17 00:00:00 2001 From: Prabhu Ramachandran Date: Fri, 25 Nov 2011 02:24:34 +0530 Subject: ENH: First cut of CSS for pages. This is largely taken from other sites and looks reasonable for now. Also added links to the admin page from the monitor/user_data/grade_user. --- exam/views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'exam/views.py') diff --git a/exam/views.py b/exam/views.py index cd91ef8..ed73adf 100644 --- a/exam/views.py +++ b/exam/views.py @@ -124,7 +124,9 @@ def start(request): try: profile = user.get_profile() except Profile.DoesNotExist: - profile = None + msg = 'You do not have a profile and cannot take the quiz!' + raise Http404(msg) + new_paper = QuestionPaper(user=user, user_ip=ip, key=key, quiz=quiz, profile=profile) new_paper.start_time = datetime.datetime.now() -- cgit