Skip to content
Snippets Groups Projects
Commit 71184220 authored by John Jarvis's avatar John Jarvis
Browse files

convert STATIC_URL to ascii

parent 0e6b21ef
No related branches found
Tags release-2019-07-03-11.16
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment