Skip to main content

Generate .dia diagram of your django project's models

Project description

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 >= 3.0 supported. In long term set of supported versions will be in parity with official django support.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

django_dia-0.5.0-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file django_dia-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: django_dia-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for django_dia-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b0c57e783f8d2017a135fd090014911b8bc29ccc353ef85231068f6db9f7a4a3
MD5 c7a51f50250b5b252065ffca6cbfa4fe
BLAKE2b-256 00c1f661c626e2a39e1ad2d591f671d32adc4e19915c7b1906f760d7f7a48600

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page