diff options
author | jayparikh111 | 2012-02-17 12:12:33 +0530 |
---|---|---|
committer | jayparikh111 | 2012-02-17 12:12:33 +0530 |
commit | cc348af7bed2430dbd1c748138642ea7ecbe09a9 (patch) | |
tree | 978f40714eeba88bc40fa7473b51fe8f0f8e2df9 /testapp/exam | |
parent | 3cf25b2893bc7b9c7e31240a6e43aedfade68080 (diff) | |
download | online_test-cc348af7bed2430dbd1c748138642ea7ecbe09a9.tar.gz online_test-cc348af7bed2430dbd1c748138642ea7ecbe09a9.tar.bz2 online_test-cc348af7bed2430dbd1c748138642ea7ecbe09a9.zip |
minor url changes
Diffstat (limited to 'testapp/exam')
-rw-r--r-- | testapp/exam/urls.py | 8 | ||||
-rw-r--r-- | testapp/exam/views.py | 4 |
2 files changed, 6 insertions, 6 deletions
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<quiz_id>\d+)/$', 'monitor'), url(r'^user_data/(?P<username>[a-zA-Z0-9_.]+)/$', 'user_data'), url(r'^grade_user/(?P<username>[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', |