Django localization: tags are not updated

I'm going crazy, my shortcuts don't update in my views after running makemessages and compilemessages ! This is what I have tried so far:

  • make sure there are no < fuzzy lines in PO files
  • delete MO files
  • relaunch makemessages and compilemessages
  • delete everything. pyc files in my project
  • delete browser cache
  • change browser
  • delete local database and run synchdb
  • shout at the monitor

running commands are as follows:

 python manage.py makemessages --all --no-obsolete --no-location --no-wrap --traceback python manage.py compilemessages --traceback 

Is there any Django caching mechanism related to compiled MO files that I have to empty? What can I do? I'm really furious! -_- '

+4
source share
2 answers

I met the same problem, I thought. But, I just incorrectly declared LOCALE_PATHS installation

+1
source

The problem is how django finds translation files: see here (django docs) . Normally, LOCALE_PATHS does not need to be defined - just make sure your application is in INSTALLED_APPS (which may seem obvious, but not always, for example, when there are sub-applications).

0
source

Source: https://habr.com/ru/post/1487487/


All Articles