From cc348af7bed2430dbd1c748138642ea7ecbe09a9 Mon Sep 17 00:00:00 2001 From: jayparikh111 Date: Fri, 17 Feb 2012 12:12:33 +0530 Subject: minor url changes --- testapp/exam/urls.py | 8 ++++---- testapp/exam/views.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'testapp/exam') diff --git a/testapp/exam/urls.py b/testapp/exam/urls.py index 4545897..8fa9a36 100644 --- a/testapp/exam/urls.py +++ b/testapp/exam/urls.py @@ -4,14 +4,14 @@ urlpatterns = patterns('exam.views', url(r'^$', 'index'), url(r'^login/$', 'user_login'), url(r'^manage/$', 'prof_manage'), - url(r'^addquestion/$', 'add_question'), - url(r'^addquiz/$', 'add_quiz'), - url(r'^grade_user/$', 'show_all_users'), + url(r'^manage/addquestion/$', 'add_question'), + url(r'^manage/addquiz/$', 'add_quiz'), + url(r'^manage/gradeuser/$', 'show_all_users'), url(r'^register/$', 'user_register'), url(r'^start/$', 'start'), url(r'^quit/$', 'quit'), url(r'^complete/$', 'complete'), - url(r'^monitor/$', 'monitor'), + url(r'^manage/monitor/$', 'monitor'), url(r'^monitor/(?P\d+)/$', 'monitor'), url(r'^user_data/(?P[a-zA-Z0-9_.]+)/$', 'user_data'), url(r'^grade_user/(?P[a-zA-Z0-9_.]+)/$', 'grade_user'), diff --git a/testapp/exam/views.py b/testapp/exam/views.py index 7c7a8ad..b202ff3 100644 --- a/testapp/exam/views.py +++ b/testapp/exam/views.py @@ -97,7 +97,7 @@ def add_question(request): if form.is_valid(): data = form.cleaned_data form.save() - return my_redirect("/exam/addquestion/") + return my_redirect("/exam/manage/addquestion/") else: return my_render_to_response('exam/add_question.html', @@ -115,7 +115,7 @@ def add_quiz(request): if form.is_valid(): data = form.cleaned_data form.save() - return my_redirect("/exam/addquiz") + return my_redirect("/exam/manage/addquiz") else: return my_render_to_response('exam/add_quiz.html', -- cgit