14. Model Introspect

14.1. Reverse engineering database

  • python manage.py inspectdb

14.2. Graph Model

$ brew install graphviz
$ pip install pydotplus
$ python manage.py graph_models -a -g -o all.png
$ python manage.py graph_models myapp -g -o myapp.png
$ python manage.py graph_models -a -I Contact,Address -o models.png
$ python manage.py graph_models -a --arrow-shape normal -o myproject.png