Metadata-Version: 2.0
Name: django-dia
Version: 0.3.4
Summary: Generate .dia diagram of your django project's models
Home-page: https://github.com/neumond/django-dia
Author: Vitalik Verhovodov
Author-email: knifeslaughter@gmail.com
License: MIT
Keywords: django dia model diagram
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 3
Requires-Dist: Django
Requires-Dist: six

.. image:: https://travis-ci.org/neumond/django-dia.svg?branch=master
    :target: https://travis-ci.org/neumond/django-dia

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`_.

.. _django-extensions: https://github.com/django-extensions/django-extensions
.. _was dropped: https://bugs.launchpad.net/ubuntu/+source/graphviz/+bug/745669

Installation
============

.. code:: bash

    pip install django-dia

Using
=====

Add *django-dia* to your *INSTALLED_APPS*:

.. code:: python

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

And run

.. code:: bash

    ./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.


