Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there an app to create UML from django models?

Tags:

python

django

uml

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 avaialble to do that?

like image 701
e-satis Avatar asked Sep 09 '10 12:09

e-satis


People also ask

How get UML from PyCharm?

View UML class diagramIn the Project tool window, right-click an item for which you want to create a diagram and select Diagrams | Show Diagram Ctrl+Alt+Shift+U ). In the list that opens, select Python Class Diagram. PyCharm generates a UML diagram for classes and their dependencies.

Can Eclipse make UML diagrams?

You can create UML project for any of your Java project in Eclipse.

What is UML Python?

The Unified Modeling Language (UML) is a graphical notation that provides a standard for depicting classes and the relationships between them.


2 Answers

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
like image 98
Frost.baka Avatar answered Oct 11 '22 18:10

Frost.baka


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

pyreverse -o pdf project_name/models.py -p project
like image 45
Keith John Hutchison Avatar answered Oct 11 '22 17:10

Keith John Hutchison