diff --git a/lms/envs/devstack_docker.py b/lms/envs/devstack_docker.py index ad3a4c0cfe..0557d8c63e 100644 --- a/lms/envs/devstack_docker.py +++ b/lms/envs/devstack_docker.py @@ -68,3 +68,5 @@ MKTG_URLS = { } CREDENTIALS_SERVICE_USERNAME = 'credentials_worker' + +COURSE_CATALOG_API_URL = 'http://edx.devstack.discovery:18381/api/v1/' diff --git a/openedx/core/djangoapps/catalog/management/commands/cache_programs.py b/openedx/core/djangoapps/catalog/management/commands/cache_programs.py index fc8c86316d..ec4f521d40 100644 --- a/openedx/core/djangoapps/catalog/management/commands/cache_programs.py +++ b/openedx/core/djangoapps/catalog/management/commands/cache_programs.py @@ -41,7 +41,7 @@ class Command(BaseCommand): user = User.objects.get(username=username) except User.DoesNotExist: logger.error( - 'Failed to create API client. Service user {username} does not exist.'.format(username) + 'Failed to create API client. Service user {username} does not exist.'.format(username=username) ) raise @@ -85,7 +85,7 @@ class Command(BaseCommand): client = create_catalog_api_client(user) except User.DoesNotExist: logger.error( - 'Failed to create API client. Service user {username} does not exist.'.format(username) + 'Failed to create API client. Service user {username} does not exist.'.format(username=username) ) raise