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:
(Apologies that the image above doesn'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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for django-schema-graph-1.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e3ea8d2d05fec0ac4c0562f04e7d1f694f4a51bbbb9e25a2d910889f3bc549e |
|
MD5 | 695f69d01a4129fd98942d13c71ad1a8 |
|
BLAKE2b-256 | e387fc99f83f25972f1aae8c068cbd94ab3dcc908427d320650f618231f982d9 |
Hashes for django_schema_graph-1.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9edae30e85b4c275aba2f6ee6b6b3e9d42cbef245a53a052f05cee445c3bd87 |
|
MD5 | a24021a81345e26e9f1d081b765f3d40 |
|
BLAKE2b-256 | 259feb8f62faa174084785cbbf17481195c28fd2978a2100b3aa0d274595c48f |