Django中的那些事儿

xgettext: command not found

今天在mbp上做django的国际化,使用命令django-admin.py makemessages -l zh_CN却出现如下错误:

Error: errors happened while running xgettext on __init__.py  
/bin/sh: xgettext: command not found

解决办法:

brew install gettext  
brew link gettext  --force  
Go Top
comments powered by Disqus