Django South graphmigrations
This Django South command doesn’t get much press, but I submitted an upstream enhancement to make graphmigrations output a bit prettier. It has been integrated and should make an appearance in the eventual 1.0 release. The differences:
- Colored nodes on a per-app basis
- Dependencies between migrations of different apps are given heavier line weights
dot
is instructed to try and keep migrations from one app in a straighter line, giving better visual grouping- The text used in the nodes is wrapped and underscores are converted to spaces
You can see the results below for the archweb project and its current suite of migrations. I’ve included links to the full size PNG and SVG versions as well. To generate a graph for your own Django project, simply run ./manage.py graphmigrations | dot -T png > migrations.png
.
See Also
- Arch Package Visualization - June 23, 2011
- Fast unicode decoding in Python 2.7 - February 27, 2011
- python-pgpdump, a PGP packet parser library - March 8, 2012
- MySQL deadlocking on simple inserts - March 7, 2012
- Python cached property decorator - December 10, 2010