0👍
✅
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’.
👤Luka
1👍
Since the question doesn’t specify an operating system, I thought I’d add that in Debian, this issue can be fixed as follows:
apt-get install -y locales
sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen
dpkg-reconfigure locales
- How to create a User model object using Django REST framework?
- Show first_name, last_name and email in profile serializer
- Django CDN with Nginx and uWSGI
Source:stackexchange.com