Commit 633ea8f0 by McKenzie Welter Committed by McKenzie Welter

read config file strings as unicode

parent 3e71dcfe
...@@ -46,7 +46,7 @@ ALLOWED_HOSTS = ['*'] ...@@ -46,7 +46,7 @@ ALLOWED_HOSTS = ['*']
DICT_UPDATE_KEYS = ('JWT_AUTH',) DICT_UPDATE_KEYS = ('JWT_AUTH',)
CONFIG_FILE = get_env_setting('ECOMMERCE_CFG') CONFIG_FILE = get_env_setting('ECOMMERCE_CFG')
with open(CONFIG_FILE) as f: with open(CONFIG_FILE, encoding='utf-8') as f:
config_from_yaml = yaml.load(f) config_from_yaml = yaml.load(f)
# Remove the items that should be used to update dicts, and apply them separately rather # Remove the items that should be used to update dicts, and apply them separately rather
......
Markdown is supported
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