why whene I run makemessages the locale repertoir still empty

I have some problems using the command django-admin makemessages -l es I’m running it but the locale repertory still empty and and there is not .po files generated on my locale repertory. and after running the command I get this message processing locale es

I add this following code on my setting.py file:

    os.path.join(BASE_DIR, 'locale')



I have gettext installed and I have created a repertory named locale on root of the project, I don’t realy get the problem

os.path.join(BASE_DIR, ‘locale’)

  • make sure you import os in settings.py above the file.
    import os
  • you might use gettext_lazy() instead Docs.

if not working too please provide settings.py languages section.