Will & Skill Developers

Will & Skill Developers


Thoughts, snippets and ideas from the team at Will & Skill AB, Stockholm.

Faisal Mahmud
Author

“The mind is not a vessel to be filled, but a fire to be kindled.” ― Plutarch

Share


Use django-extensions and Graphviz to create a visual representation of Your Django project and its apps

Faisal MahmudFaisal Mahmud

Visual representations of a bigger project might simplify a lot of things for You as a developer. The purpose of this tutorial is to use Graphviz and django-extensions in order to output an image that illustrates how different apps in a Django project relates to each other.

NOTE: This has been tested on Ubuntu 16.04

$ pip install django-extensions
$ sudo apt-get install graphviz graphviz-dev
$ pip install pygraphviz

Now add django_extensions to INSTALLED_APPS in your settings.py and call the command described below.

$ python project/manage.py graph_models --pygraphviz -a -g -o project_visualized.png
Faisal Mahmud
Author

Faisal Mahmud

“The mind is not a vessel to be filled, but a fire to be kindled.” ― Plutarch

Comments