Skip to content

Instantly share code, notes, and snippets.

@burnash
Forked from perrygeo/django_model_graph.sh
Last active August 28, 2020 18:00
Show Gist options
  • Save burnash/e9f827d002860596ed21 to your computer and use it in GitHub Desktop.
Save burnash/e9f827d002860596ed21 to your computer and use it in GitHub Desktop.
Generate Django Model Graph
apt-get install python-pygraphviz
pip install django-extensions
# add 'django_extensions' to INSTALLED_APPS in settings.py
python manage.py graph_models -a -o myapp_models.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment