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:

tar zxf django-extensions-0.4.1.tar.gz
cd django-extensions-0.4.1
sudo install


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


sudo apt-get install python-pygraphviz

Then in your project directory:

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