diff --git a/lms/djangoapps/courseware/module_render.py b/lms/djangoapps/courseware/module_render.py index 7ad8d5e441..d764091ccf 100644 --- a/lms/djangoapps/courseware/module_render.py +++ b/lms/djangoapps/courseware/module_render.py @@ -142,7 +142,8 @@ def get_module(user, request, location, student_module_cache, position=None): ajax_url = settings.MITX_ROOT_URL + '/modx/' + descriptor.location.url() + '/' # Fully qualified callback URL for xqueue - xqueue_callback_url = (request.build_absolute_uri('/') + settings.MITX_ROOT_URL + + #xqueue_callback_url = (request.build_absolute_uri('/') + settings.MITX_ROOT_URL + # TODO: build_absolute_uri on sandbox instance returns 127.0.0.1 + xqueue_callback_url = ('http://18.189.52.120:8000/' + settings.MITX_ROOT_URL + # Sandbox URL 'xqueue/' + str(user.id) + '/' + descriptor.location.url() + '/' + 'score_update') @@ -231,7 +232,7 @@ def xqueue_callback(request, userid, id, dispatch): # Transfer 'queuekey' from xqueue response header to 'get'. This is required to # use the interface defined by 'handle_ajax' - get.update({'queuekey': header['queuekey']}) + get.update({'queuekey': header['lms_key']}) # We go through the "AJAX" path # So far, the only dispatch from xqueue will be 'score_update'