summaryrefslogtreecommitdiff
path: root/testapp/yaksh/settings.py
diff options
context:
space:
mode:
authorankitjavalkar2015-09-11 12:35:09 +0530
committerankitjavalkar2015-09-14 12:00:53 +0530
commit32cde26f9807a29eb1fae0833e353212d43d7802 (patch)
tree52423f2c68ee22d4375eef86a3950d169410fe55 /testapp/yaksh/settings.py
parentae10d36297797ffc53275eabe3acfa0cb4bf3b11 (diff)
downloadonline_test-32cde26f9807a29eb1fae0833e353212d43d7802.tar.gz
online_test-32cde26f9807a29eb1fae0833e353212d43d7802.tar.bz2
online_test-32cde26f9807a29eb1fae0833e353212d43d7802.zip
Change app name to 'yaksh'
Diffstat (limited to 'testapp/yaksh/settings.py')
-rw-r--r--testapp/yaksh/settings.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/testapp/yaksh/settings.py b/testapp/yaksh/settings.py
new file mode 100644
index 0000000..4b1828e
--- /dev/null
+++ b/testapp/yaksh/settings.py
@@ -0,0 +1,29 @@
+"""
+settings for yaksh 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",
+ }