summaryrefslogtreecommitdiff
path: root/exam
diff options
context:
space:
mode:
authorPrabhu Ramachandran2011-11-19 15:52:04 +0530
committerPrabhu Ramachandran2011-11-19 15:52:04 +0530
commitdb74ad784752eea326982c4e84faf9ec3768e006 (patch)
treeca87cc096936b57fceeb80794d7a5ac5d555c850 /exam
parent759d1da9a8e8221f999550042fbcb96ac5083607 (diff)
downloadonline_test-db74ad784752eea326982c4e84faf9ec3768e006.tar.gz
online_test-db74ad784752eea326982c4e84faf9ec3768e006.tar.bz2
online_test-db74ad784752eea326982c4e84faf9ec3768e006.zip
Configure server port and timeout in settings.py
Also updated documentation.
Diffstat (limited to 'exam')
-rw-r--r--exam/xmlrpc_clients.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/exam/xmlrpc_clients.py b/exam/xmlrpc_clients.py
index 1bc5513..be2f8b1 100644
--- a/exam/xmlrpc_clients.py
+++ b/exam/xmlrpc_clients.py
@@ -1,5 +1,5 @@
from xmlrpclib import ServerProxy
+from ..settings import SERVER_PORT
# Connect to the python server.
-python_server = ServerProxy('http://localhost:8001')
- \ No newline at end of file
+python_server = ServerProxy('http://localhost:%d'%(SERVER_PORT))