diff options
author | Prabhu Ramachandran | 2011-11-20 23:26:18 +0530 |
---|---|---|
committer | Prabhu Ramachandran | 2011-11-20 23:26:18 +0530 |
commit | 5650db889ad19d199efe06c59f766698a515a4c5 (patch) | |
tree | 5fc269ed1f38608bbd46cee8af68687803115d82 /templates/exam/question.html | |
parent | 13d4aa869a8a49c2ea27ee97b88decfde48639b5 (diff) | |
download | online_test-5650db889ad19d199efe06c59f766698a515a4c5.tar.gz online_test-5650db889ad19d199efe06c59f766698a515a4c5.tar.bz2 online_test-5650db889ad19d199efe06c59f766698a515a4c5.zip |
ENH: Adding a URL_ROOT configuration option.
This is useful when you are forced to host the app on a URL like
host.org/foo/exam and not as host.org/exam as you would want. Change
the URL_ROOT setting to "/foo" in the above case for this to work.
Diffstat (limited to 'templates/exam/question.html')
-rw-r--r-- | templates/exam/question.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/exam/question.html b/templates/exam/question.html index 226bdca..dec476e 100644 --- a/templates/exam/question.html +++ b/templates/exam/question.html @@ -58,7 +58,7 @@ function update_time() <p id="status"></p> -<form id="code" action="/exam/{{ question.id }}/check/" method="post"> +<form id="code" action="{{URL_ROOT}}/exam/{{ question.id }}/check/" method="post"> {% csrf_token %} <textarea rows="20" cols="100" name="answer"> @@ -78,7 +78,7 @@ you have {{ paper.questions_left }} question(s) left in {{ quiz_name }}.</p> <p id="time_left"> <strong> Time left: </strong> </p> <hr/> -<form id="logout" action="/exam/quit/" method="post"> +<form id="logout" action="{{URL_ROOT}}/exam/quit/" method="post"> {% csrf_token %} <input type="submit" name="quit" value="Quit exam and logout" /> </form> |