diff --git a/cms/envs/aws.py b/cms/envs/aws.py index 34ddcbd55057bc66914f39a02ac5bbc30ecadb6a..32a4c9755176894223b1420202b3f6461eae73db 100644 --- a/cms/envs/aws.py +++ b/cms/envs/aws.py @@ -89,7 +89,8 @@ with open(CONFIG_ROOT / CONFIG_PREFIX + "env.json") as env_file: # STATIC_URL_BASE specifies the base url to use for static files STATIC_URL_BASE = ENV_TOKENS.get('STATIC_URL_BASE', None) if STATIC_URL_BASE: - STATIC_URL = STATIC_URL_BASE + "/" + git.revision + "/" + # collectstatic will fail if STATIC_URL is a unicode string + STATIC_URL = STATIC_URL_BASE.encode('ascii', 'ignore') + "/" + git.revision + "/" # GITHUB_REPO_ROOT is the base directory # for course data