Skip to content

Instantly share code, notes, and snippets.

@ratpik
Created November 25, 2013 10:48
Show Gist options
  • Save ratpik/7639550 to your computer and use it in GitHub Desktop.
Save ratpik/7639550 to your computer and use it in GitHub Desktop.
A way to visualize the schema of models in Django and take periodic snapshots to document schema changes over time. Uses the `django-extensions` app and `graphviz`
python manage.py graph_models <app > <app>.dot
dot <app>.dot -Tpng -o <app>+`date`.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment