Commit f4574c75 by Vik Paruchuri

Proper config dictionary generation for controller query

parent 69333759
from django.conf import settings
import logging
log=logging.getLogger(__name__)
def get_controller_url():
peer_grading_url = settings.PEER_GRADING_INTERFACE
peer_grading_url = settings.PEER_GRADING_INTERFACE['url']
split_url = peer_grading_url.split("/")
controller_url = "http://" + split_url[2] + "/grading_controller"
return controller_url
controller_settings=settings.PEER_GRADING_INTERFACE
controller_settings['url'] = controller_url
return controller_settings
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment