推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
pythonee
V2EX  ›  Python

django 的 makemessages 不会把 installed app 的多语言包含进来吗

  •  
  •   pythonee · May 15, 2015 · 2852 views
    This topic created in 4155 days ago, the information mentioned may be changed or developed.
    我在project root下面跑makemessages,发现语言key只是当前项目的,它不会扫描settings.py,把installed app下面的app的多语言也带过来吗
    6 replies  •  2015-05-18 14:33:07 +08:00
    recall704
        1
    recall704  
       May 15, 2015
    不知道你用的是哪个版本,我记得需要自己设置
    LOCALE_PATHS
    pythonee
        2
    pythonee  
    OP
       May 15, 2015
    @recall704 django 1.6
    ericls
        3
    ericls  
       May 15, 2015 via Android
    你是 manage.py 还是 django-admin 在哪个目录执行的?
    pythonee
        4
    pythonee  
    OP
       May 18, 2015
    @ericls 是在项目的当前目录
    ericls
        5
    ericls  
       May 18, 2015
    pythonee
        6
    pythonee  
    OP
       May 18, 2015
    @ericls 是的, python manage.py makemessages -l zh_CN
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1480 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 16:27 · PVG 00:27 · LAX 09:27 · JFK 12:27
    ♥ Do have faith in what you're doing.