Django本地支持迁移 [英] Does Django natively support migrations

查看:148
本文介绍了Django本地支持迁移的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我听说所有像ROR,Django等新的网络框架都遵循Agile和TDD的一般原则。以下敏捷和TDD的一部分是从一个迭代到另一个迭代来组成自己的设计。这意味着模型及其模式将随着应用程序的不同版本而演变。我知道ROR本身支持模式迁移,但是我不知道django。我的主要关切是,如何才能预先处理所有与模式有关的问题。是不是回到瀑布式的设计理念。



我也知道有一些外部包,如south,用于模式迁移。但是这个问题真的是关于为什么django不支持迁移的原因,像ROR

解决方案

Django 1.7将是第一个在核心源中提供模式迁移的版本。检查开发商。版本的文档关于此主题。



南方创始人安德鲁·戈德温(Andrew Godwin)做了这个工作,由一个启动器项目


I've heard that all the new web frameworks like ROR, Django etc. follow the general principle of Agile and TDD. One part of following Agile and TDD is to make up your own design as you go from one iteration to other. This means that models and their schema will evolve with different versions of the app. I know that ROR supports schema migrations natively, However I'm not sure about django. My major concern is that how can I decide upfront all the schema related issues. Isn't it going back to waterfall kind of design philosophy.

I also know that there are external packages like 'south' for schema migrations. But this question is really about inquiring as to why django doesn't support migrations natively like ROR

解决方案

Django 1.7 will be the first version providing schema migrations in the core source. check the dev. version of the docs regarding this topic.

Andrew Godwin, the creator of South, did this work, backed by a kickstarter project.

这篇关于Django本地支持迁移的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆