On the production server (nginx + uWSGI) there is a project in Django 1.9 and Python 2.7.
It is necessary to translate messages in forms. enter image description here

I created the locale directory in the project root (and in the appendix), then I do the following:

django-admin makemessages -l ru -e html,txt django-admin -d djangojs django-admin compilemessages 

enter image description here

In settings.py registered:

 LANGUAGE_CODE = 'ru-RU' LOCALE_PATHS = [ PROJECT_ROOT + 'locale', ] 

Can someone tell me what's the catch?

  • Is this not a standard browser validation? (very similar to a bug in ff) - waynee

0