Shashishekhar Hasabnis Shashishekhar Hasabnis - 28 days ago 9
Python Question

SHOP_CURRENCY_LOCALE = 'en_US.UTF-8'

I am trying to include the line

SHOP_CURRENCY_LOCALE = 'en_US.UTF-8'


inside my settings.py file but it's giving me the 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 to set the locale for your s
ystem, or configure the SHOP_CURRENCY_LOCALE setting in your settings module.

Answer

The locale must be installed on your computer. On Linux or Mac you can get the installed locales by executing "locale -a".

Windows is a bit wierder and I don't think UTF-8 suffix is available. Here is a list of Windows locales. You should use the language string.

https://msdn.microsoft.com/en-us/library/39cwe7zf(v=vs.140).aspx

In your case that would be 'us'.