diff options
author | Prabhu Ramachandran | 2015-09-04 18:57:57 +0530 |
---|---|---|
committer | Prabhu Ramachandran | 2015-09-04 18:57:57 +0530 |
commit | 31f5e743031d105b0406e9587dc33bb065cd6e4d (patch) | |
tree | 653fbd703850e1e12f875bc5422ec3cb809c6e07 /testapp/yaksh_app/settings.py | |
parent | c9abbadbb0e6a4a60edb7ef2a14d6c74648b0677 (diff) | |
parent | 3ee050fe509b83f36188566ee57b3dd16d94a8a7 (diff) | |
download | online_test-31f5e743031d105b0406e9587dc33bb065cd6e4d.tar.gz online_test-31f5e743031d105b0406e9587dc33bb065cd6e4d.tar.bz2 online_test-31f5e743031d105b0406e9587dc33bb065cd6e4d.zip |
Merge pull request #55 from ankitjavalkar/yaksh
Change app name to yaksh
Diffstat (limited to 'testapp/yaksh_app/settings.py')
-rw-r--r-- | testapp/yaksh_app/settings.py | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/testapp/yaksh_app/settings.py b/testapp/yaksh_app/settings.py new file mode 100644 index 0000000..9039250 --- /dev/null +++ b/testapp/yaksh_app/settings.py @@ -0,0 +1,29 @@ +""" +settings for yaksh_app 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 = '' + +code_evaluators = { + "python": "python_code_evaluator.PythonCodeEvaluator", + "c": "c_cpp_code_evaluator.CCPPCodeEvaluator", + "cpp": "c_cpp_code_evaluator.CCPPCodeEvaluator", + "java": "java_code_evaluator.JavaCodeEvaluator", + "bash": "bash_code_evaluator.BashCodeEvaluator", + "scilab": "scilab_code_evaluator.ScilabCodeEvaluator", + } |