Skip to content

Instantly share code, notes, and snippets.

@huangzhuolin
Created June 15, 2018 09:35
Show Gist options
  • Save huangzhuolin/4baa5dc3a9b389ba29a3822f18f328bc to your computer and use it in GitHub Desktop.
Save huangzhuolin/4baa5dc3a9b389ba29a3822f18f328bc to your computer and use it in GitHub Desktop.
[Generate (and view) a graphviz graph of app models] #mac #python #django
# mac os
brew install graphviz
pip install pygraphviz
pip install django-extensions
python manage.py graph_models trees -o test.png
INSTALLED_APPS = (
...
'django_extensions',
...
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment