Skip to content

Instantly share code, notes, and snippets.

Last active Mar 21, 2020
What would you like to do?
Django model graph of specific apps, grouped by app, without inheritance
# Graph the models of specified apps.
# graph_models arguments:
# -g = Group models by app.
# -E = Do not show model inheritance.
# --output output_file, used with --pygraphviz
# `date --rfc-3339=date` = YYYY-MM-DD
python graph_models --pygraphviz -gE --output modelsgraph-`date --rfc-3339=date`.png appname1 appname2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment