开发者

Is there an app to create UML from django models?

开发者 https://www.devze.com 2023-01-15 05:20 出处:网络
I am looking for a way to generate UML diagrams from a Django application Model structure. Epydoc doesn\'t work with Django models because it needs django\'s settings.py to be imported and manage.pyg

I am looking for a way to generate UML diagrams from a Django application Model structure.

Epydoc doesn't work with Django models because it needs django's settings.py to be imported and manage.py graph_models generates unreadable output, not easily parsable and hard to convert to UML.

Is there any tool开发者_Python百科 avaialble to do that?


There is a graph tool in django_extensions app. Precisely this one http://code.google.com/p/django-command-extensions/wiki/GraphModels

# Create a PNG image file called my_project_visualized.png with application grouping
$ ./manage.py graph_models -a -g -o my_project_visualized.png


pyreverse which is now a part of pylint creates reasonable UML documents.

pyreverse -o pdf project_name/models.py -p project
0

精彩评论

暂无评论...
验证码 换一张
取 消