summaryrefslogtreecommitdiff
path: root/testapp/exam/settings.py
diff options
context:
space:
mode:
authorankitjavalkar2015-04-30 11:21:49 +0530
committerankitjavalkar2015-04-30 11:29:35 +0530
commitd8847656ba79e51c96c6e3650374aaf616c375dc (patch)
tree9e4ca3c29bc082cdd7b6775208544c2da9cee374 /testapp/exam/settings.py
parent18df6d88a2e1a9dfe7d05ca97b2d69ff0569e088 (diff)
downloadonline_test-d8847656ba79e51c96c6e3650374aaf616c375dc.tar.gz
online_test-d8847656ba79e51c96c6e3650374aaf616c375dc.tar.bz2
online_test-d8847656ba79e51c96c6e3650374aaf616c375dc.zip
Code Review: Code Refactoring
Diffstat (limited to 'testapp/exam/settings.py')
-rw-r--r--testapp/exam/settings.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/testapp/exam/settings.py b/testapp/exam/settings.py
index 682516f..497a620 100644
--- a/testapp/exam/settings.py
+++ b/testapp/exam/settings.py
@@ -18,3 +18,11 @@ SERVER_TIMEOUT = 2
# 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 = ''
+
+language_register = {"python": "python_code_evaluator",
+ "c": "c_cpp_code_evaluator",
+ "cpp": "c_cpp_code_evaluator",
+ "java": "java_evaluator",
+ "bash": "bash_evaluator",
+ "scilab": "scilab_evaluator",
+ }