Hello guys, this day I want to share a simply tutorial how to fix CommandError: Unable to find a locale path to store translations for file <app_name>/__init__.py for Django 1.10

In my previous LOCALE_PATHS inside file of settings.py is like this:

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

This should an error if you work under Django>=1.10.5, because as docs says, LOCALE_PATHS is a list, an not tupe.

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

Hope it usefull..

internationalization settings solution multi languages django

Your Answer

blog comments powered by Disqus