[Answer]-Eclipse not recognising the default locale

1👍

Not a great solution, but adding the following two lines to manage.py should get things working. Place them below the call to os.environ.setdefault(“DJANGO_SETTINGS_MODULE”, “*PROJECT_NAME*.settings”).

os.environ["LANG"] = "en_US.UTF-8"
os.environ["LC_ALL"] = "en_US.UTF-8"

As for the why part, see here.

Leave a comment