cd "$(dirname "$(readlink -f "$0")")"/.. source ./venv/bin/activate python manage.py graph_models apps_home | dot -Tpng -o entity-relationship-diagram.png