官术网_书友最值得收藏!

Best practices before starting a project

While preparing a development environment, make sure that you have the following in place:

  • A fresh Python virtual environment: Python 3 includes the venv module or you can install virtualenv. Both of them prevent polluting your global Python library. pipenv is the recommended tool (used in this book as well) for higher-level management of virtual environments and dependencies.
  • Version control: Always use a version control tool such as Git or Mercurial. They are lifesavers. You can also make changes much more confidently and fearlessly.
  • Choose a project template: Django's default project template is not the only option. Based on your needs, try other templates such as Edge (https://github.com/arocks/edge) by yours truly or use Cookiecutter (https://github.com/pydanny/cookiecutter-django).
  • Deployment pipeline: I usually worry about this a bit later, but having a fast deployment process speeds up development. I prefer Fabric (it has a Python 3 fork called fabric3) or Ansible.
主站蜘蛛池模板: 巴楚县| 墨竹工卡县| 尼玛县| 济阳县| 绥芬河市| 荆门市| 义乌市| 屯门区| 德格县| 通州区| 浮梁县| 徐闻县| 育儿| 石城县| 平利县| 乐安县| 兰州市| 砀山县| 永德县| 前郭尔| 蚌埠市| 黑山县| 台州市| 边坝县| 济宁市| 新营市| 泸定县| 淮安市| 卓尼县| 鹤山市| 高唐县| 莎车县| 神木县| 寿阳县| 华蓥市| 元阳县| 洪洞县| 南城县| 西乌珠穆沁旗| 漳浦县| 会东县|