Django 1.4專案開發
Back in February, I wrote a post titled 'Starting a Django Project the Right Way', which still draws a consistent audience eight months later.
In those eight months, Django has released version 1.4 of the framework, with 1.5 under active development and promising experimental support for Python 3.x.
Given these changes, as well as the availability of new and updated resources available to Django developers, I decided to revisit the concept of best practices when starting a Django project.
The beginning of a project is a critical time. Choices are made that have long term consequences. There are a number of tutorials about how to get started with the Django framework, but few that discuss how to use Django in a professional way, using industry accepted best practices to make sure your project development scales as your application grows. A small bit of planning goes a longway towards making your life easier in the future.
By the end of this post, you will have
1. A fully functional Django 1.4 project
2. All resources under source control (with git or Mercurial)
3. Automated regression and unit testing (using the unittest library)
4. An environment independent install of your project (using virtualenv)
5. Automated deployment and testing (using Fabric)
6. Automatic database migrations (using South)
7. A development work flow that scales with your site.
None of these steps, except for perhaps the first, are covered in the official tutorial. They should be. If you're looking to start a new, production ready Django 1.4 project, look no further.
In those eight months, Django has released version 1.4 of the framework, with 1.5 under active development and promising experimental support for Python 3.x.
Given these changes, as well as the availability of new and updated resources available to Django developers, I decided to revisit the concept of best practices when starting a Django project.
The beginning of a project is a critical time. Choices are made that have long term consequences. There are a number of tutorials about how to get started with the Django framework, but few that discuss how to use Django in a professional way, using industry accepted best practices to make sure your project development scales as your application grows. A small bit of planning goes a longway towards making your life easier in the future.
By the end of this post, you will have
1. A fully functional Django 1.4 project
2. All resources under source control (with git or Mercurial)
3. Automated regression and unit testing (using the unittest library)
4. An environment independent install of your project (using virtualenv)
5. Automated deployment and testing (using Fabric)
6. Automatic database migrations (using South)
7. A development work flow that scales with your site.
None of these steps, except for perhaps the first, are covered in the official tutorial. They should be. If you're looking to start a new, production ready Django 1.4 project, look no further.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/301743/viewspace-747346/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 以正確的方式開始一個 Django 1.4 專案Django
- django 開發網站-建立 django 專案Django網站
- django專案開發環境搭建Django開發環境
- django專案開發實戰——部落格Django
- python django專案開發總結PythonDjango
- 我如何用Django開發一個專案Django
- django2專案環境開發基本配置Django
- Django學習筆記(20)——BBS+Blog專案開發(4)Django如何使用BootstrapDjango筆記boot
- Luffy專案:2、專案需求(2),專案庫的建立,軟體開發目錄,Django配置檔案介紹Django
- Django1.4和1.3的靜態檔案路徑配置Django
- 專案完成 - 基於Django3.x版本 - 開發部署小結Django
- Django專案搭建流程Django
- 專案完成小結 - Django3.x版本 - 開發部署小結 (2)Django
- Django 1.4 Python 2.7菜鳥入門DjangoPython
- Django REST Framework Quickstart 專案DjangoRESTFrameworkUI
- Django(3)pycharm建立專案DjangoPyCharm
- Django專案中使用CeleryDjango
- django專案筆記1Django筆記
- django_0:專案流程Django
- 5.Django專案部署Django
- 使用pycharm新建Django專案PyCharmDjango
- 專案開發程式
- 專案開發文件
- Django開發流程Django
- 【Django開發】前後端分離美多商城專案第2篇:專案準備【附程式碼文件】Django後端
- 怎麼執行django專案Django
- Django建立第一個專案Django
- 建立第一個django專案Django
- celery 在django專案中使用Django
- Vue專案打包到django部署VueDjango
- Django 專案配置拆分獨立Django
- Linux 下部署Django專案LinuxDjango
- docker 部署 django + mysql + vue 專案DockerDjangoMySqlVue
- python專案開發Python
- 電商專案app開發APP
- vue專案開發-3Vue
- 專案開發框架-SSM框架SSM
- web專案開發流程Web