diff options
author | Prabhu Ramachandran | 2014-07-26 18:52:50 +0530 |
---|---|---|
committer | Prabhu Ramachandran | 2014-07-26 18:52:50 +0530 |
commit | 265ad4d17f481e30a84350e8eb96e72c8cedef6b (patch) | |
tree | 43f9e2b4288a108f02e6999ff15de6db94676aaf /testapp/exam/settings.py | |
parent | ec33daea9185bb783c5dcd4f8daddc135b25a0fa (diff) | |
parent | f1d28170cf96ae6e4b0a5fb39f38e0aaa5709b6a (diff) | |
download | online_test-265ad4d17f481e30a84350e8eb96e72c8cedef6b.tar.gz online_test-265ad4d17f481e30a84350e8eb96e72c8cedef6b.tar.bz2 online_test-265ad4d17f481e30a84350e8eb96e72c8cedef6b.zip |
Merge pull request #34 from prathamesh920/reusable_app
Reusable app
Diffstat (limited to 'testapp/exam/settings.py')
-rw-r--r-- | testapp/exam/settings.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/testapp/exam/settings.py b/testapp/exam/settings.py new file mode 100644 index 0000000..682516f --- /dev/null +++ b/testapp/exam/settings.py @@ -0,0 +1,20 @@ +""" +settings for exam app. +""" +# The ports the code server should run on. This will run one separate +# server for each port listed in the following list. +SERVER_PORTS = [8001] # range(8001, 8026) + +# The server pool port. This is the server which returns available server +# ports so as to minimize load. This is some random number where no other +# service is running. It should be > 1024 and less < 65535 though. +SERVER_POOL_PORT = 53579 + +# 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 = '' |