From 85c6cea9652c64e49eabdc91adfa86cad1321d1d Mon Sep 17 00:00:00 2001 From: Zainab Amir Date: Thu, 16 Dec 2021 18:00:31 +0500 Subject: [PATCH] fix: use settings instead of config (#29622) --- lms/djangoapps/save_for_later/api/v1/views.py | 4 ++-- lms/envs/common.py | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lms/djangoapps/save_for_later/api/v1/views.py b/lms/djangoapps/save_for_later/api/v1/views.py index aa82483aad..18991c0c34 100644 --- a/lms/djangoapps/save_for_later/api/v1/views.py +++ b/lms/djangoapps/save_for_later/api/v1/views.py @@ -99,8 +99,8 @@ class SaveForLaterApiView(APIView): } braze_client = BrazeClient( - api_key=configuration_helpers.get_value('EDX_BRAZE_API_KEY'), - api_url=configuration_helpers.get_value('EDX_BRAZE_API_SERVER'), + api_key=settings.EDX_BRAZE_API_KEY, + api_url=settings.EDX_BRAZE_API_SERVER, app_id='', ) diff --git a/lms/envs/common.py b/lms/envs/common.py index 6754763b57..2ce55290ed 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -4571,6 +4571,9 @@ PASSWORD_RESET_EMAIL_RATE = '2/h' SAVE_FOR_LATER_IP_RATE_LIMIT = '100/d' SAVE_FOR_LATER_EMAIL_RATE_LIMIT = '5/h' +EDX_BRAZE_API_KEY = None +EDX_BRAZE_API_SERVER = None + ############### Settings for Retirement ##################### # .. setting_name: RETIRED_USERNAME_PREFIX # .. setting_default: retired__user_