0
내 장고 앱에 rosetta
을 사용하고 있습니다. 번역 문자열을 모두 설정 했으므로 로컬 환경에서 작업하고 있습니다. CommandError: Can't find msguniq. Make sure you have GNU gettext tools 0.15 or newer installed.
내가 post_compile 스크립트를 추가하고 @nik_m의 제안에 따라 코드 heroku run python manage.py makemessages -l en
Heroku Django 번역
편집
를 실행할 때하지만 난 점점 오전 : 문제는 그에게 Heroku에 코드를 누르면, 나는 오류입니다 오류 :
In post-compile hook
remote: -----> Compiling translation files
remote: CommandError: Can't find msgfmt.
Make sure you have GNU gettext tools 0.15 or newer installed.
'requirements.txt' 파일에'django-rosetta'가 있습니까? –
예 현재 현재 django-rosetta == 0.7.12 –
입니다. heroku에서'makemessages'를 실행할 이유가 없습니다. 너는 단지'git push heroku master'을해야만한다. –