南部移民和django移民有什么区别? [英] What is the difference between south migrations and django migrations?

查看:93
本文介绍了南部移民和django移民有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以向我解释南迁徙与django迁徙之间的区别吗?

Can anyone please explain me the difference between south migrations and django migrations? What advantage/disadvantage one has over another?

推荐答案

South是django的第三方应用程序,它在内置迁移之前增加了对迁移的支持解决方案是在Django 1.7中引入的。除非您坚持使用过时的Django版本,否则根本没有理由使用South。 FWIW,只需检查南部项目的页面,就应该回答您的问题:

South is a third part django app that added support for migrations before a builtin migration solution was introduced in Django 1.7. Unless you're stuck with a long-dead Django version, there's no reason you should use South at all. FWIW, just checking the south project's page should have answered your question:


South已过时。

South has been deprecated.

从Django 1.7起,迁移已内置到Django的核心中。如果您运行的是先前版本,则可以在BitBucket上找到存储库。

From Django 1.7 upwards, migrations are built into the core of Django. If you are running a previous version, you can find the repository on BitBucket.

整个功能都非常相似(这不是自从新的内置迁移系统开始作为South的2.0分支开始,这是一个很大的惊喜,但新系统的运行效果更好,特别是当您必须合并两个各自具有自己的迁移的分支时。

Feature-wide both are quite similar (which is not a big surprise since the new builtin migration system started it's life as the 2.0 branch of South), except the new system works better, specially when you have to merge two branches each having it's own migrations.

这篇关于南部移民和django移民有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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