add debugging to courseware debug (tricky with https behind gunicorn)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user