Commit e0cf393b by ichuang

add debugging to courseware debug (tricky with https behind gunicorn)

parent 76db9e55
......@@ -294,10 +294,12 @@ def index(request, course=None, chapter=None, section=None,
defsection = multicourse_settings.get_course_default_section(course)
if defchapter and defsection:
# jump there using redirect, so the user gets the right URL in their browser
return redirect('%s/courseware/%s/%s/%s/' % (settings.MITX_ROOT_URL,
get_course(request, course),
defchapter,
defsection))
newurl = '%s/courseware/%s/%s/%s/' % (settings.MITX_ROOT_URL,
get_course(request, course),
defchapter,
defsection)
log.debug('redirecting to %s' % newurl)
return redirect(newurl)
chapter = clean(chapter)
section = clean(section)
......
......@@ -18,7 +18,8 @@ from .logsettings import get_logger_config
from .dev import *
if 'eecs1' in socket.gethostname():
MITX_ROOT_URL = '/mitx2'
# MITX_ROOT_URL = '/mitx2'
MITX_ROOT_URL = 'https://mitx2'
#-----------------------------------------------------------------------------
# edx4edx content server
......
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