Shashishekhar Hasabnis Shashishekhar Hasabnis - 6 months ago 53
Python Question


I am trying to include the line


inside my 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.


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.

In your case that would be 'us'.