python - SHOP_CURRENCY_LOCALE = 'en_US.UTF-8' -
i trying include line
shop_currency_locale = 'en_us.utf-8'
inside settings.py file it's giving me following error:-
raise improperlyconfigured(msg % currency_locale) django.core.exceptions.improperlyconfigured: invalid currency locale specified f or shop_currency_locale: 'en_us.utf-8'. you'll need set locale s ystem, or configure shop_currency_locale setting in settings module.
the locale must installed on computer. on linux or mac can installed locales executing "locale -a".
windows bit wierder , don't think utf-8 suffix available. here list of windows locales. should use language string.
https://msdn.microsoft.com/en-us/library/39cwe7zf(v=vs.140).aspx
in case 'us'.
Comments
Post a Comment