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 開發網站-建立 django 專案Django網站
- django專案開發環境搭建Django開發環境
- django專案開發實戰——部落格Django
- 我如何用Django開發一個專案Django
- django2專案環境開發基本配置Django
- Django學習筆記(20)——BBS+Blog專案開發(4)Django如何使用BootstrapDjango筆記boot
- django專案使用Django
- Luffy專案:2、專案需求(2),專案庫的建立,軟體開發目錄,Django配置檔案介紹Django
- Django專案搭建流程Django
- 專案完成 - 基於Django3.x版本 - 開發部署小結Django
- 專案完成小結 - Django3.x版本 - 開發部署小結 (2)Django
- 5.Django專案部署Django
- django專案筆記1Django筆記
- Linux 下部署Django專案LinuxDjango
- Django REST Framework Quickstart 專案DjangoRESTFrameworkUI
- Django(3)pycharm建立專案DjangoPyCharm
- Django專案中使用CeleryDjango
- 【Django開發】前後端分離美多商城專案第2篇:專案準備【附程式碼文件】Django後端
- 從零開始:Django專案的建立與配置指南Django
- python專案開發Python
- Django建立第一個專案Django
- 建立第一個django專案Django
- docker 部署 django + mysql + vue 專案DockerDjangoMySqlVue
- Vue專案打包到django部署VueDjango
- 使用Dockerfile構建django專案DockerDjango
- Python 建立一個Django專案PythonDjango
- Django 專案配置拆分獨立Django
- 怎麼執行django專案Django
- celery 在django專案中使用Django
- Django框架簡介和建立django專案的基本流程Django框架
- Django開發流程Django
- vue專案開發-3Vue
- 基於django的視訊點播網站開發-step1-專案介紹Django網站
- Django學習筆記(18)——BBS+Blog專案開發(2)主體思路及流程Django筆記
- Django 專案配置初體驗(一)Django
- 使用 uWSGI 和 Nginx 部署 Django 專案NginxDjango
- Django-APP及專案入門DjangoAPP
- 使用nginx+uwsgi部署Django專案NginxDjango
- 如何在 Django 專案中使用 MQTTDjangoMQQT