Is there an app to create UML from django models?
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
精彩评论