If things look a little dusty around here, it's because I'm away on a mission for two years. I'll be back in August 2012, but in the mean time feel free to fork my projects on github.
Django to UML
Apr 29, 2010
by Jared

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