Django - 生成models的UML图
参考
https://simpleit.rocks/python/django/generate-uml-class-diagrams-from-django-models/
运用django-extensions(中的graph_models) + pygraphviz(or pydotplus)
1. 安装django-extensions
pip install django-extensions
INSTALLED_APPS = (
...
'django_extensions',
...
)
2. 安装pygraphviz或者pydotplus
pip install pygraphviz
3. 生成UML
python manage.py graph_models -a -o myapp_models.png
关于django-extensions的graph_models用法
例如对特定的models画图
https://django-extensions.readthedocs.io/en/latest/graph_models.html#example-usage