Skip to content

Instantly share code, notes, and snippets.

@bikemule
Last active March 21, 2020 14:41
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Django model graph of specific apps, grouped by app, without inheritance
# Graph the models of specified apps.
# manage.py 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 manage.py 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