Reputation: 1
I use Python3.5 and Django 1.9.6. When I try to perform command: migrate or makemigrations I've got error:
"No translation files found for default language en-us."
My setting.py is as follows:
LANGUAGE_CODE ='en-us'
TIME_ZONE = 'UTC'
USE_I18N = True
USE_L10N = True
USE_TZ = True
I tried to add below string "LANGUAGE_CODE"
:
LANGUAGES = (('en', gettext('English'))
as it's written in tutorial, but it doesn't help, cmd has started getting new error.
Upvotes: 0
Views: 3396
Reputation: 23
Ran into this issue while setting up BookWyrm and indeed as Sayse suggested in the comments, running makemessages
solved the issue for me.
Going by the django-admin documentation: django-admin makemessages
should work if the LANGUAGE_CODE
is specified in your settings file or you can specify the locale via the --locale
or -l
option.
Upvotes: 1