summaryrefslogtreecommitdiff
path: root/templates/exam/quit.html
diff options
context:
space:
mode:
authorPrabhu Ramachandran2011-11-20 23:26:18 +0530
committerPrabhu Ramachandran2011-11-20 23:26:18 +0530
commit5650db889ad19d199efe06c59f766698a515a4c5 (patch)
tree5fc269ed1f38608bbd46cee8af68687803115d82 /templates/exam/quit.html
parent13d4aa869a8a49c2ea27ee97b88decfde48639b5 (diff)
downloadonline_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/quit.html')
-rw-r--r--templates/exam/quit.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/exam/quit.html b/templates/exam/quit.html
index a9d3515..37b5c08 100644
--- a/templates/exam/quit.html
+++ b/templates/exam/quit.html
@@ -6,7 +6,7 @@
<p>Your current answers are saved.</p>
<p> Are you sure you wish to quit the exam?</p>
-<form action="/exam/complete/" method="post">
+<form action="{{URL_ROOT}}/exam/complete/" method="post">
{% csrf_token %}
<input type="submit" name="yes" value="Yes!" />
<input type="submit" name="no" value="No!" />