Registry / web-framework / django-schema-viewer

django-schema-viewer

JSON →
library0.5.3pypypi✓ verified 85d ago

django-schema-viewer visualizes a database schema based on Django models. It generates interactive ER diagrams using D3.js. Current version 0.5.3, weekly releases.

pip install django-schema-viewer
INSTALL
IMPORT
SIG · DJANGO-SCHEMA-VIEW
D
django-schema-viewer
web-frameworkpythonv0.5.3
Install
3.5s avg
Import
—
Disk
67MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v0.5.3 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 68MB
glibc
py 3.10–3.95 runs
installs and imports cleanly · install 3.5s · import 0.000s · 69MB
67MB installed
● package 67MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

schema_viewer
✓ import schema_viewer
✗ from django_schema_viewer import schema_view

Add the schema_view to your Django URL config and visit /schema/ to see the diagram.

from django_schema_viewer import schema_view from django.urls import path urlpatterns = [ path('schema/', schema_view), ]
Debug
Known issues
breakingIn version 0.5.0, the main view was moved from django_schema_viewer.views to django_schema_viewer. If you imported from the old path, you'll get ImportError.
fix
Change import to 'from django_schema_viewer import schema_view'.
affects: >=0.5.0
deprecatedThe management command 'dump_schema' was deprecated in 0.5.0 and will be removed in a future release.
fix
Use the 'generate_schema' command instead (if available) or rely on the view.
affects: >=0.5.0
gotchaThe schema only shows models from installed apps. Make sure your app is in INSTALLED_APPS or models will be missing.
fix
Verify your app is listed in Django's INSTALLED_APPS.
affects: all
Upgrade
Version history
0.5.3latest on PyPI · released Mar 23, 2025
Audit
Dependencies
DjangorequiredCore dependency. Requires Django models to analyze.
graphvizoptionalUsed internally for layout; install separately on some systems.
Agent activity
12 hits · last 30 days
node
10
OpenAI (training)
1
Resources
django-schema-viewer — pip install django-schema-viewer · libregistry