Hi guys,
I hit a problem today.
I move my project to one VPS located at LA.
When running, it keeps logging "ImproperlyConfigured: Invalid currency
locale specified for SHOP_CURRENCY_LOCALE: ''. You'll need to set the
locale for your system, or configure the SHOP_CURRENCY_LOCALE setting in
your settings module.".
Looking at cartridge source:
def set_locale():
"""
Sets the locale for currency formatting.
"""
currency_locale = str(settings.SHOP_CURRENCY_LOCALE)
try:
if setlocale(LC_MONETARY, currency_locale) == "C":
# C locale doesn't contain a suitable value for "frac_digits".
raise
except:
msg = _("Invalid currency locale specified for
SHOP_CURRENCY_LOCALE: "
"'%s'. You'll need to set the locale for your system, or "
"configure the SHOP_CURRENCY_LOCALE setting in your
settings "
"module.")
raise ImproperlyConfigured(msg % currency_locale)
There is no SHOP_CURRENCY_LOCALE in my settings.py, but It's OK when my
code runs upon WIN7 desktop.
My VPS is centos 6.5, so, how this happened? What should I do to fix?
Thanks.
Wesley
--
You received this message because you are subscribed to the Google Groups
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.