Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
例如,如果用户总是可以运行,为什么“django-cms”的作者将 gettext 的 mo 文件保存在 repo 中(这不仅仅是疏忽,请参阅此提交manage.py compilemessages) ?只是为了从这一步中拯救用户并使安装过程更容易一点?
manage.py compilemessages
还有很多其他的例子:django-filer甚至django 本身!
谢谢!
通常您不会将生成的文件保存在存储库中,这是不对的。
但有时您的应用按原样安装,例如从 pypi。在这种情况下,用户不会运行 compilemessages 并且将预编译的 .mo 文件保留在发行版中是有意义的