Creates draw.io (mxgraph) UML class diagram from django models of django project. Represents django app which intruduce additional manage.py command, and required to be embedded into django project.
- Deploy in django project directory.
- Add
'drawio_django_model'
toINSTALLED_APPS = [...]
insettings.py
. - Run
python manage.py drawio_django_model
from console. - Open
diagram.drawio
file in the root of django project (where manage.py is placed).
It's yet very basic instrument, creating "heap" of class blocks on the diagram for further manual layout, far from release complete.
- Auto layout of diagram.
- Add description from
Meta.verbose_name
. - Add connections from
ForeignField
. - Auto open diagram on complete.
- Filename in console parameters.
- Exception handling.
- PNG, JPG and other file type support.