{"id":23598,"library":"django-schema-viewer","title":"django-schema-viewer","description":"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.","status":"active","version":"0.5.3","language":"python","source_language":"en","source_url":"https://github.com/pikhovkin/django-schema-viewer","tags":["django","schema","visualization","erd","database"],"install":[{"cmd":"pip install django-schema-viewer","lang":"bash","label":"Default install"}],"dependencies":[{"reason":"Core dependency. Requires Django models to analyze.","package":"Django","optional":false},{"reason":"Used internally for layout; install separately on some systems.","package":"graphviz","optional":true}],"imports":[{"note":"Old import path broke in 0.5.0","wrong":"from django_schema_viewer.views import schema_view","symbol":"schema_view","correct":"from django_schema_viewer import schema_view"}],"quickstart":{"code":"from django_schema_viewer import schema_view\nfrom django.urls import path\n\nurlpatterns = [\n    path('schema/', schema_view),\n]","lang":"python","description":"Add the schema_view to your Django URL config and visit /schema/ to see the diagram."},"warnings":[{"fix":"Change import to 'from django_schema_viewer import schema_view'.","message":"In 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.","severity":"breaking","affected_versions":">=0.5.0"},{"fix":"Use the 'generate_schema' command instead (if available) or rely on the view.","message":"The management command 'dump_schema' was deprecated in 0.5.0 and will be removed in a future release.","severity":"deprecated","affected_versions":">=0.5.0"},{"fix":"Verify your app is listed in Django's INSTALLED_APPS.","message":"The schema only shows models from installed apps. Make sure your app is in INSTALLED_APPS or models will be missing.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run 'pip install --upgrade django-schema-viewer' and use 'from django_schema_viewer import schema_view'.","cause":"Version mismatch. Used old import path or older version.","error":"ImportError: cannot import name 'schema_view' from 'django_schema_viewer'"},{"fix":"Run 'pip install graphviz' and also install Graphviz system package (e.g., 'apt install graphviz' on Ubuntu).","cause":"The graphviz Python package or system binaries are missing.","error":"ModuleNotFoundError: No module named 'graphviz'"},{"fix":"Ensure Django >=3.1 and check app configuration. Try removing cached .pyc files.","cause":"Unsupported Django or app configuration issue.","error":"AttributeError: 'AppConfig' object has no attribute 'models_module'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}