Skip to content

Generate .dia diagram of your django project's models.

Notifications You must be signed in to change notification settings

brian-mw/django-dia

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

https://travis-ci.org/neumond/django_dia.svg?branch=master

Goals

Sometimes you need to generate a database diagram for your Django project. django-extensions does this well, but drops non-editable file like 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  # all apps in project
./manage.py make_diagram -e -o scheme my_app1 my_app2  # specific apps

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

Compatibility

Django >= 1.8 supported. In long term set of supported versions will be in parity with official django support.

About

Generate .dia diagram of your django project's models.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 99.6%
  • Shell 0.4%