Django - Model graphic representation (ERD) [closed]

一笑奈何 提交于 2019-11-26 18:58:13

问题


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

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


Update following @Etienne instructions

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
  • 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

回答1:


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.

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

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

You can check also this list of tools.




回答2:


Best I can think of is Argo UML which requires you to design by hand (and then you can convert the UML into Django with this tool)

If you want to do django - uml conversion (the other way) try looking at Django To UML



来源:https://stackoverflow.com/questions/6776592/django-model-graphic-representation-erd

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