summaryrefslogtreecommitdiff
path: root/templates/exam/intro.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/intro.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/intro.html')
-rw-r--r--templates/exam/intro.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/exam/intro.html b/templates/exam/intro.html
index 75de639..1d3e5de 100644
--- a/templates/exam/intro.html
+++ b/templates/exam/intro.html
@@ -45,7 +45,7 @@ carefully.
<p> We hope you enjoy taking this exam.</p>
-<form action="/exam/start/" method="post" align="center">
+<form action="{{URL_ROOT}}/exam/start/" method="post" align="center">
{% csrf_token %}
<input type="submit" name="start" value="Start Exam!">
</form>