dimanche 11 octobre 2015

django internationalisation works locally but not on aws elastic beanstalk

i tried different ways to solve this problem but all doesn't work:

trial 1: 05_compile_the_translation: command: "python manage.py compilemessages" leader_only: true

it said i have not installed the gettext software in the server. how to do it? i logged in the elastic beanstalk instance via ssh already. but i can't find any files there?

trial 2: added the django .mo files into the git repo and deploy all of them to the website server. with this setting in django:

LOCALE_PATHS = ( 'locale', os.path.join(BASE_DIR, '../../../locale'), os.path.join(BASE_DIR, '../../locale'), os.path.join(BASE_DIR, '../locale'), os.path.join(BASE_DIR, 'locale'), )

but it doesn't work as well.

any luck? thx




Aucun commentaire:

Enregistrer un commentaire