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 /settings.py | |
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 'settings.py')
-rw-r--r-- | settings.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/settings.py b/settings.py index e5e3e69..655608d 100644 --- a/settings.py +++ b/settings.py @@ -12,6 +12,13 @@ SERVER_PORTS = [8001] # range(8001, 8026) # Timeout for the code to run in seconds. This is an integer! SERVER_TIMEOUT = 2 +# The root of the URL, for example you might be in the situation where you +# are not hosted as host.org/exam/ but as host.org/foo/exam/ for whatever +# reason set this to the root you have to serve at. In the above example +# host.org/foo/exam set URL_ROOT='/foo' +URL_ROOT = '' + + ADMINS = ( # ('Your Name', 'your_email@example.com'), ) |