It turns out other people have had this idea and done a nice job of implementing it with Pyreverse.
Getting started you'll need:
On Ubuntu:
sudo apt-get install graphvix libgraphviz-dev python-dev
pip install pylint pygraphvizOn OSX: (I found it easiest to use Homebrew)
brew install graphviz
pip install pylint pygraphvizI also added django-extentions to my project to clean up some of the meta data from django.
The result: (where HospiPal is the name of the app I'd like modeled)
python manage.py graph_models -g -e -l dot -o django.png HospiPal
Personally, I find this graph beautiful. Saves me quite a bit of time building UML models as well.
References:
Visualize Your Classes Post
References:
Visualize Your Classes Post
No comments:
Post a Comment