Fueled / django-init

Project template used at Fueled for scaffolding new Django based projects. :dizzy:
Other
189 stars 46 forks source link

feat(localization): Add compilemessages & fix default pypi mirror #316

Closed CuriousLearner closed 6 years ago

CuriousLearner commented 6 years ago

Why was this change necessary?

Some cloud providers like Alibaba cloud uses default pypi and easy_install mirror set to aliyum on booting up the ECS instance.

However, the deployment will fail, since for easy_install, from .pydistutils.cfg, the virtualenv is not properly made (without any bin folder, activate script etc.)

Also, the .pip/pip.conf ensures that the global url for pypi mirror for fetching packages from requirements is actual python.org server for reasons mentioned above.

Apart from these changes, I've added a compilemessages command, so that the static messages are translated on every deployment if available.

How does it address the problem?

Reasons mentioned above.

Are there any side effects?

None.