Skip to content

Instantly share code, notes, and snippets.

Last active November 23, 2023 10:47
  • Star 18 You must be signed in to star a gist
  • Fork 8 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Generate graphic model Django with PyGraphViz pygraphviz pydot generate model graph model 2020

How to generate graphic model Django with PyGraphViz?

sudo apt-get install -y graphviz libgraphviz-dev pkg-config
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
pip install pygraphviz
pip uninstall pyparsing
pip install -Iv
pip install pydot
pip install django-extensions

The next command generate the graphic of model.

python graph_models -e -g -l dot -o core.png core  # only app core
python graph_models -a -g -o models.png # all



Copy link

rg3915 commented Dec 8, 2021

Thanks @iitsmel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment