skip to navigation
skip to content

django-dia 0.3.4

Generate .dia diagram of your django project's models

Goals

Sometimes you need generate a database diagram for your Django project. django-extensions does this well, but drops non-editable file such as PNG. Even when you use SVG format you’ll waste much time with bunch of objects that are not stitched together: when you move a table, you’ll need to move all connected arrows and captions.

There was a time when you could generate .dia file directly with django-extensions. But dia support was dropped.

Installation

pip install django-dia

Using

Add django-dia to your INSTALLED_APPS:

INSTALLED_APPS = (
    #...
    'django-dia',
)

And run

./manage.py make_diagram -a -e -o scheme
./manage.py make_diagram -e -o scheme my_app1 my_app2

This will produce file scheme.dia in your project directory.

 
File Type Py Version Uploaded on Size
django_dia-0.3.4-py3-none-any.whl (md5) Python Wheel py3 2016-12-06 10KB