1👍
✅
It was wrong approach to edit wsgi.py
, because you need to set LANG and LC_ALL variables BEFORE you start Django application.
As for DigitalOcean Django image you should open gunicorn Upstart script /etc/gunicorn.d/gunicorn.p
and add two variables just before you start application:
env LANG = en_US.UTF-8
env LC_AL = en_US.UTF-8
Source:stackexchange.com