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:
LOCALE_PATHS = ( 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.
LOCALE_PATHS = [ os.path.join(BASE_DIR, 'projectname/locale'), ]
Hope it usefull..
posted 7 months, 2 weeks ago