Skip to content

Instantly share code, notes, and snippets.

@marceloleiva
Forked from perrygeo/django_model_graph.sh
Created April 3, 2018 21:06
Show Gist options
  • Save marceloleiva/fd934de69dcebdcd1892b6741955732e to your computer and use it in GitHub Desktop.
Save marceloleiva/fd934de69dcebdcd1892b6741955732e 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment