Does Django natively support migrations

☆樱花仙子☆ 提交于 2019-12-11 02:27:48

问题


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


回答1:


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.




回答2:


It is currently been added into the framework - refer Migrations and most likely will be available in version 1.7.

There is 3rd party django app south, that can be used for this purpose.




回答3:


South is excellent Plugin for Schema Migrations. Hands Down.



来源:https://stackoverflow.com/questions/19209388/does-django-natively-support-migrations

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!