diff --git a/lms/envs/common.py b/lms/envs/common.py index 4d459a6019..063bc0de92 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -3357,7 +3357,8 @@ ECOMMERCE_API_TIMEOUT = 5 ECOMMERCE_SERVICE_WORKER_USERNAME = 'ecommerce_worker' ECOMMERCE_API_SIGNING_KEY = 'SET-ME-PLEASE' -COURSE_CATALOG_API_URL = 'http://localhost:8008/api/v1' +COURSE_CATALOG_URL_ROOT = 'http://localhost:8008' +COURSE_CATALOG_API_URL = '{}/api/v1'.format(COURSE_CATALOG_URL_ROOT) CREDENTIALS_INTERNAL_SERVICE_URL = 'http://localhost:8005' CREDENTIALS_PUBLIC_SERVICE_URL = 'http://localhost:8005' diff --git a/lms/envs/devstack.py b/lms/envs/devstack.py index aecb9d45bb..87ae3e3792 100644 --- a/lms/envs/devstack.py +++ b/lms/envs/devstack.py @@ -359,7 +359,8 @@ ENTERPRISE_MARKETING_FOOTER_QUERY_PARAMS = {} CREDENTIALS_SERVICE_USERNAME = 'credentials_worker' -COURSE_CATALOG_API_URL = 'http://edx.devstack.discovery:18381/api/v1/' +COURSE_CATALOG_URL_ROOT = 'http://edx.devstack.discovery:18381' +COURSE_CATALOG_API_URL = '{}/api/v1'.format(COURSE_CATALOG_URL_ROOT) # Uncomment the lines below if you'd like to see SQL statements in your devstack LMS log. # LOGGING['handlers']['console']['level'] = 'DEBUG' diff --git a/lms/envs/test.py b/lms/envs/test.py index 1fb77e7352..38d0e394f7 100644 --- a/lms/envs/test.py +++ b/lms/envs/test.py @@ -486,7 +486,8 @@ FEATURES['ORGANIZATIONS_APP'] = True # Financial assistance page FEATURES['ENABLE_FINANCIAL_ASSISTANCE_FORM'] = True -COURSE_CATALOG_API_URL = 'https://catalog.example.com/api/v1' +COURSE_CATALOG_URL_ROOT = 'https://catalog.example.com' +COURSE_CATALOG_API_URL = '{}/api/v1'.format(COURSE_CATALOG_URL_ROOT) COMPREHENSIVE_THEME_DIRS = [REPO_ROOT / "themes", REPO_ROOT / "common/test"] COMPREHENSIVE_THEME_LOCALE_PATHS = [REPO_ROOT / "themes/conf/locale", ]