An interactive graph of your Django model structure.
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 images above don't work on PyPI. Check it out on GitHub.)
Install from PyPI:
pip install django-schema-graph
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()), ]
/schema/ (assuming that's where you put it in your URLs).
DEBUG mode is required, on the assumption that you don't want to leak
sensitive information about your website outside of local development.
Tested with Django 1.8, and 1.11 - 3.0 on Python 2.7 and 3.5 - 3.8 (where those combinations make sense).
django-spaghetti-and-meatballsis 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.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size django_schema_graph-1.2.0-py2.py3-none-any.whl (268.8 kB)||File type Wheel||Python version py2.py3||Upload date||Hashes View|
|Filename, size django-schema-graph-1.2.0.tar.gz (266.4 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for django_schema_graph-1.2.0-py2.py3-none-any.whl
Hashes for django-schema-graph-1.2.0.tar.gz