Skip to main content

An interactive graph of your Django model structure.

Project description

Django Schema Graph

Django-schema-graph makes a colourful diagram out of your Django models. The diagram is interactive, and makes it easy to toggle models and apps on/off at will.

It looks like this:

Feature Screenshot
Models models screenshot
Apps apps screenshot
Both together models and apps screenshot
Graph editor menu screenshot

(Apologies that the images above don't work on PyPI. Check it out on GitHub.)

Installation

Install from PyPI:

pip install django-schema-graph

Add to INSTALLED_APPS:

INSTALLED_APPS = [
    ...
    'schema_graph',
    ...
]

Add to your URLs.

from schema_graph.views import Schema
urlpatterns += [
    # On Django 2+:
    path("schema/" Schema.as_view()),
    # Or, on Django < 2:
    url(r"^schema/$", Schema.as_view()),
]

Use

Browse to /schema/ (assuming that's where you put it in your URLs).

Note: DEBUG mode is required, on the assumption that you don't want to leak sensitive information about your website outside of local development.

Support

Tested with Django 1.8, and 1.11 - 3.0 on Python 2.7 and 3.5 - 3.8 (where those combinations make sense).

Alternatives

  • django-spaghetti-and-meatballs is great. At the time of writing, it offers a lot more detailed information on the models in the diagram, but doesn't allow them to be turned on/off in the page.

Project details


Download files

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

Source Distribution

django-schema-graph-1.2.0.tar.gz (266.4 kB view details)

Uploaded Source

Built Distribution

django_schema_graph-1.2.0-py2.py3-none-any.whl (268.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-schema-graph-1.2.0.tar.gz.

File metadata

  • Download URL: django-schema-graph-1.2.0.tar.gz
  • Upload date:
  • Size: 266.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.1

File hashes

Hashes for django-schema-graph-1.2.0.tar.gz
Algorithm Hash digest
SHA256 9efb3b9f18c1875a9ef5b2af0f7f4aac59109da5ea5d8202b265a09f0d7b2425
MD5 55b9662056b9b567d61da199deaa3e6c
BLAKE2b-256 0f2003fa9934ed172722afffafb8214da68d5b7ba9c157a7f066a820812f7c9c

See more details on using hashes here.

File details

Details for the file django_schema_graph-1.2.0-py2.py3-none-any.whl.

File metadata

  • Download URL: django_schema_graph-1.2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 268.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.1

File hashes

Hashes for django_schema_graph-1.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 baa8b06e4dabfa55a52b84d555e97f058990bfd857fa39b1e24e112e0d9e948e
MD5 09c2f9c146f6e2925edb3b2365c5b9ec
BLAKE2b-256 6144ee51bcd88d98f59fe35b4de9fc59b2484b4163134ad1add6dc62bf901e79

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