S
S
Salavat Sharapov2014-12-08 09:47:24
Django
Salavat Sharapov, 2014-12-08 09:47:24

Django makemessges how to ignore unwanted directories?

Kind!
When executing the ./manage.py makemessages command, it goes through all the directories of the project, looking for ugetext and {% trans %}.
But it happens that clients (workers) download (media), a .txt file in ANSI. And that's it. the command starts swearing at UnicodeDecodeError when parsing a file name.
Is it possible, without editing makemessages.py in the django package, to set where to look for the same ugettext.
Well, accordingly, this will increase the speed of creating a .po file
. I did not find anything in the docks *(

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Salavat Sharapov, 2014-12-08
@desperadik

pffff...
the answer to the question is written in
makemessages.py itself ./manage.py makemessages -i "dirname"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question