diff --git a/cms/envs/aws.py b/cms/envs/aws.py index 9fabb3b9e8..12d661a21c 100644 --- a/cms/envs/aws.py +++ b/cms/envs/aws.py @@ -81,6 +81,7 @@ with open(ENV_ROOT / CONFIG_PREFIX + "env.json") as env_file: ENV_TOKENS = json.load(env_file) LMS_BASE = ENV_TOKENS.get('LMS_BASE') +MITX_FEATURES['PREVIEW_LMS_BASE'] = ENV_TOKENS.get('PREVIEW_LMS_BASE') SITE_NAME = ENV_TOKENS['SITE_NAME'] diff --git a/cms/envs/common.py b/cms/envs/common.py index d6752686d7..58f39efa7e 100644 --- a/cms/envs/common.py +++ b/cms/envs/common.py @@ -41,6 +41,7 @@ MITX_FEATURES = { # Enable URL that shows information about the status of variuous services 'ENABLE_SERVICE_STATUS': False, + 'PREVIEW_LMS_BASE' : None } ENABLE_JASMINE = False diff --git a/cms/envs/dev.py b/cms/envs/dev.py index 203e4bd909..638612294b 100644 --- a/cms/envs/dev.py +++ b/cms/envs/dev.py @@ -55,6 +55,7 @@ DATABASES = { } LMS_BASE = "localhost:8000" +MITX_FEATURES['PREVIEW_LMS_BASE'] = "localhost:8000" REPOS = { 'edx4edx': { diff --git a/cms/envs/test.py b/cms/envs/test.py index 6d78b0d7d6..cdee14e16d 100644 --- a/cms/envs/test.py +++ b/cms/envs/test.py @@ -82,6 +82,7 @@ DATABASES = { } LMS_BASE = "localhost:8000" +MITX_FEATURES['PREVIEW_LMS_BASE'] = "localhost:8000" CACHES = { # This is the cache used for most things. Askbot will not work without a