Django - 模型图形表示(ERD) [英] Django - Model graphic representation (ERD)

查看:134
本文介绍了Django - 模型图形表示(ERD)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找以图形方式表示Django项目模型的方法。

I'm searching a way to represent my Django project model graphically.

有没有一些应用程序可以使用这种 ERD (图)?

Is there some application that does this kind of ERD (diagram) ?

更新以下 @Etienne说明

这是一个例子,我如何最终查看代表我的django项目的一些模型的PDF

Here is an example of how I finally view the PDF representing some models of my django project

$ python manage.py graph_models app1 app2 ... | dot -Tpdf | evince




  • 它实际上是用我的应用程序生成点数据(app1,app2 ,...)

  • 将结果传递给 dot 以输出为PDF格式

  • 打开输出与 evince

    • It actually generates the dot data with my applications (app1, app2, ...)
    • Passes the result to dot to output into PDF format
    • Opens the output with evince
    • 推荐答案

      如果要从Django模型中提取UML图,可以使用图表模型命令 django-extensions 。另一个主要做同样的事情: django-graphviz

      If you want to extract UML diagram from your Django models you can use the Graph models command of django-extensions. Another one that do mostly the same thing: django-graphviz.

      如果要从UML创建Django模型: uml-to-django

      If you want to create your Django models from UML: uml-to-django.

      为了创建UML图,有 Dia yED ArgoUML

      And to create UML diagrams, there's Dia, yED and ArgoUML

      您还可以检查此工具列表

      这篇关于Django - 模型图形表示(ERD)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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