Skip to content
Snippets Groups Projects
Commit bf320f03 authored by Feanil Patel's avatar Feanil Patel
Browse files

Find more vars that are partially updated.

parent 75f66379
Branches
Tags release-2020-07-09-11.20
No related merge requests found
......@@ -47,11 +47,20 @@ with codecs.open(CONFIG_FILE, encoding='utf-8') as f:
# Add the key/values from config into the global namespace of this module.
# But don't override the FEATURES dict because we do that in an additive way.
__config_copy__ = copy.deepcopy(__config__)
if 'FEATURES' in __config_copy__:
del __config_copy__['FEATURES']
if 'EVENT_TRACKING_BACKENDS' in __config_copy__:
del __config_copy__['EVENT_TRACKING_BACKENDS']
KEYS_WITH_MERGED_VALUES = [
'FEATURES',
'TRACKING_BACKENDS',
'EVENT_TRACKING_BACKENDS',
'JWT_AUTH',
'CELERY_QUEUES',
'MKTG_URL_LINK_MAP',
'MKTG_URL_OVERRIDES',
]
for key in KEYS_WITH_MERGED_VALUES:
if key in __config_copy__:
del __config_copy__[key]
vars().update(__config_copy__)
......
......@@ -59,11 +59,20 @@ with codecs.open(CONFIG_FILE, encoding='utf-8') as f:
# Add the key/values from config into the global namespace of this module.
# But don't override the FEATURES dict because we do that in an additive way.
__config_copy__ = copy.deepcopy(__config__)
if 'FEATURES' in __config_copy__:
del __config_copy__['FEATURES']
if 'EVENT_TRACKING_BACKENDS' in __config_copy__:
del __config_copy__['EVENT_TRACKING_BACKENDS']
KEYS_WITH_MERGED_VALUES = [
'FEATURES',
'TRACKING_BACKENDS',
'EVENT_TRACKING_BACKENDS',
'JWT_AUTH',
'CELERY_QUEUES',
'MKTG_URL_LINK_MAP',
'MKTG_URL_OVERRIDES',
]
for key in KEYS_WITH_MERGED_VALUES:
if key in __config_copy__:
del __config_copy__[key]
vars().update(__config_copy__)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment