Django to UML

I was looking around for a django models to UML converter and took a bit of doing, but I found one nestled in the app django-extensions. As it took a while, I thought I’d spare the next guy a search.

To use, grab the latest version, and install pygraphviz. Here are the commands I used:

wget http://django-command-extensions.googlecode.com/files/django-extensions-0.4.1.tar.gz
tar zxf django-extensions-0.4.1.tar.gz
cd django-extensions-0.4.1
sudo setup.py install

Note

Make sure to add django_extensions to INSTALLED_APPS in your project’s settings module (thanks Stephen!)

and

sudo apt-get install python-pygraphviz

Then in your project directory:

./manage.py graph_models -a -g -o my_project_visualized.png
blog comments powered by Disqus