Skip to content

Instantly share code, notes, and snippets.

@perrygeo
Created April 13, 2013 21:44
Show Gist options
  • Save perrygeo/5380196 to your computer and use it in GitHub Desktop.
Save perrygeo/5380196 to your computer and use it in GitHub Desktop.
Generate UML diagram of django app models
apt-get install python-pygraphviz
pip install django-extensions
# add 'django_extensions' to INSTALLED_APPS in settings.py
python manage.py graph_models trees -o test.png
@lalit97
Copy link

lalit97 commented Jun 21, 2022

these steps worked for me on ubuntu 20.04

sudo apt install graphviz
pip install django-extensions
pip install pyparsing pydot
python manage.py graph_models -a -o diagram.png
python manage.py graph_models -a -g -o diagram-grouped.png

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment