- Django Design Patterns and Best Practices
- Arun Ravindran
- 154字
- 2021-06-25 21:32:03
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.
推薦閱讀
- 微信公眾平臺與小程序開發:從零搭建整套系統
- 零基礎搭建量化投資系統:以Python為工具
- SQL學習指南(第3版)
- Practical Game Design
- 低代碼平臺開發實踐:基于React
- Yii Project Blueprints
- 細說Python編程:從入門到科學計算
- 從Power BI到Analysis Services:企業級數據分析實戰
- 交互式程序設計(第2版)
- 大規模語言模型開發基礎與實踐
- Monitoring Docker
- Ionic3與CodePush初探:支持跨平臺與熱更新的App開發技術
- Head First Kotlin程序設計
- Google Maps JavaScript API Cookbook
- Managing Windows Servers with Chef