DevOps | Cloud | Analytics | Open Source | Programming





How To Visualize the Django Models ?



In this post, we will see - How To Visualize the Django Models. Follow the steps explained in the below video -


Install 
sudo apt-get install -y graphviz libgraphviz-dev pkg-config

pip install pygraphviz

pip uninstall pyparsing

pip install -Iv https://pypi.python.org/packages/source/p/pyparsing/pyparsing-1.5.7.tar.gz#md5=9be0fcdcc595199c646ab317c1d9a709

pip install pydot
pip install django-extensions

python manage.py graph\_models -e -g -l dot -o model1.png core 
python manage.py graph\_models -a -g -o model2.png