'ignore' shouldn't be use for ascii conversion
The input string is not expected to contain any unicode characters
This commit is contained in:
@@ -113,7 +113,7 @@ if STATIC_ROOT_BASE:
|
||||
STATIC_URL_BASE = ENV_TOKENS.get('STATIC_URL_BASE', None)
|
||||
if STATIC_URL_BASE:
|
||||
# collectstatic will fail if STATIC_URL is a unicode string
|
||||
STATIC_URL = STATIC_URL_BASE.encode('ascii', 'ignore') + "/"
|
||||
STATIC_URL = STATIC_URL_BASE.encode('ascii') + "/"
|
||||
|
||||
PLATFORM_NAME = ENV_TOKENS.get('PLATFORM_NAME', PLATFORM_NAME)
|
||||
# For displaying on the receipt. At Stanford PLATFORM_NAME != MERCHANT_NAME, but PLATFORM_NAME is a fine default
|
||||
|
||||
Reference in New Issue
Block a user