From 71184220e6c7af8204492162f055b5cc5c7b41c9 Mon Sep 17 00:00:00 2001 From: John Jarvis <john@jarv.org> Date: Tue, 19 Nov 2013 12:25:59 -0500 Subject: [PATCH] convert STATIC_URL to ascii --- cms/envs/aws.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cms/envs/aws.py b/cms/envs/aws.py index 34ddcbd5505..32a4c975517 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 -- GitLab