Skip to content
Snippets Groups Projects
Commit 0879f3e0 authored by kimth's avatar kimth
Browse files

Use build_absolute_uri rather than hardcoded sandbox URL

parent a773df58
No related branches found
Tags release-2020-11-23-14.27
No related merge requests found
......@@ -142,8 +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 + # 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_callback_url = (request.build_absolute_uri('/') + settings.MITX_ROOT_URL +
#xqueue_callback_url = ('http://18.189.52.120:8000/' + settings.MITX_ROOT_URL + # Sandbox URL
'xqueue/' + str(user.id) + '/' + descriptor.location.url() + '/' +
'score_update')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment