类似 django-evolution 的扩展
我正在寻找类似于 django_-volution 的扩展。 要求是更改数据库,而不删除整个数据。
我不知道,但对我来说,这是很平常的事情 - django 没有这样的内置函数吗?
django_evolution 仍在工作中,并且有一些错误,所以我想要一些稳定的并且可能有更多选择的东西。尤其是编写自己的突变对我来说似乎有点复杂。
有人知道类似的事情吗?
感谢您的所有回答
I am in search for a extension that is similar to django_-volution.
The requirement is to alter the database, whitout deleting the wohle data.
I don't know, but for me, this is something so ordinary - doesn't django have a built-in function like that?
django_evolution is still in working progress and has some bugs, so i want something that is stable and maybe has more options. Especially to write own mutations seems a little bit complex for me.
Does anybody know something similar?
Thanks for all answers
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您正在寻找南部。它目前是 Django 事实上的架构和数据迁移插件。我相信已经有关于将其添加到 Django 核心的讨论。它有一点学习曲线,但你真的想花时间学习它。
You're looking for South. It's currently the de-facto schema and data migration plugin for Django. I believe there have been talks about adding it to the core of Django. It has a bit of a learning curve but you seriously want to take the time and learn it.
您想要一些东西来按轨道执行“迁移”,对吗?据我所知,最著名、最稳定的项目是 South。它提供“Django 项目的智能模式和数据迁移”。
http://south.aeracode.org/
就我个人而言,我只是改变我的模型,并通过数据库命令行客户端。
You'd like something to perform 'migrations' a la rails, correct? The best known and most stable project is South, as far as I know. It offers "intelligent schema and data migrations for Django projects".
http://south.aeracode.org/
Personally, I just alter my model, and make the changes through the database command line client.