diff --git a/cms/envs/aws.py b/cms/envs/aws.py index 064dcc17c9..5f36f7122a 100644 --- a/cms/envs/aws.py +++ b/cms/envs/aws.py @@ -244,7 +244,7 @@ EMAIL_HOST_USER = AUTH_TOKENS.get('EMAIL_HOST_USER', EMAIL_HOST_USER) EMAIL_HOST_PASSWORD = AUTH_TOKENS.get('EMAIL_HOST_PASSWORD', EMAIL_HOST_PASSWORD) # Note that this is the Studio key for Segment. There is a separate key for the LMS. -SEGMENT_KEY = AUTH_TOKENS.get('SEGMENT_KEY') +CMS_SEGMENT_KEY = AUTH_TOKENS.get('SEGMENT_KEY') AWS_ACCESS_KEY_ID = AUTH_TOKENS["AWS_ACCESS_KEY_ID"] if AWS_ACCESS_KEY_ID == "": diff --git a/cms/envs/common.py b/cms/envs/common.py index ddd6112f0f..38e20d59e3 100644 --- a/cms/envs/common.py +++ b/cms/envs/common.py @@ -78,7 +78,7 @@ FEATURES = { 'STUDIO_REQUEST_EMAIL': '', # Segment - must explicitly turn it on for production - 'SEGMENT_KEY': None, + 'CMS_SEGMENT_KEY': None, # Enable URL that shows information about the status of various services 'ENABLE_SERVICE_STATUS': False, diff --git a/cms/envs/dev.py b/cms/envs/dev.py index 0a9c0de7e0..ffd83d064a 100644 --- a/cms/envs/dev.py +++ b/cms/envs/dev.py @@ -167,7 +167,7 @@ FEATURES['ENABLE_SERVICE_STATUS'] = True # If there's an environment variable set, grab it to turn on Segment # Note that this is the Studio key. There is a separate key for the LMS. import os -SEGMENT_KEY = os.environ.get('SEGMENT_KEY') +CMS_SEGMENT_KEY = os.environ.get('SEGMENT_KEY') ##################################################################### diff --git a/cms/envs/test.py b/cms/envs/test.py index 343b7f3817..842302b92c 100644 --- a/cms/envs/test.py +++ b/cms/envs/test.py @@ -211,7 +211,7 @@ PASSWORD_HASHERS = ( ) # No segment key -SEGMENT_KEY = None +CMS_SEGMENT_KEY = None FEATURES['ENABLE_SERVICE_STATUS'] = True diff --git a/cms/envs/yaml_config.py b/cms/envs/yaml_config.py index f301eaa406..3c863be41b 100644 --- a/cms/envs/yaml_config.py +++ b/cms/envs/yaml_config.py @@ -120,7 +120,7 @@ ADDL_INSTALLED_APPS = [] AUTH_USE_CAS = False CAS_ATTRIBUTE_CALLBACK = None MICROSITE_ROOT_DIR = '' -SEGMENT_KEY = None +CMS_SEGMENT_KEY = None DATADOG = {} ADDL_INSTALLED_APPS = [] LOCAL_LOGLEVEL = 'INFO' diff --git a/cms/templates/widgets/segment-io.html b/cms/templates/widgets/segment-io.html index b1e1fa034e..0e0c4a3f7f 100644 --- a/cms/templates/widgets/segment-io.html +++ b/cms/templates/widgets/segment-io.html @@ -6,7 +6,7 @@ %> % endif -% if settings.SEGMENT_KEY: +% if settings.CMS_SEGMENT_KEY: