Django app to render ER diagram
Project description
Django-db-schema-renderer
Overview
This is a django app to render db schema (ER diagram), of selected models or apps inside django admin panel
Requirements
- Python 3.7+
- Django 3.1+
- django-extensions 3+
- pygraphviz 1.7+
For successful install of pygraphviz you need to have on your host graphviz installed. you can find official docs here On apple silicon this can be achieved by running command:
brew install graphviz
pip3 install \
--global-option=build_ext \
--global-option="-I$(brew --prefix graphviz)/include/" \
--global-option="-L$(brew --prefix graphviz)/lib/" \
pygraphviz
Installation
-
Install using
pip
...pip install django-db-schema-renderer
-
Add
django_db_schema_renderer
to yourINSTALLED_APPS
setting, beforedjango.contrib.admin
(make sure you havedjango-extensions
also added)INSTALLED_APPS = [ 'django_db_schema_renderer', 'django.contrib.admin', ... 'django-extensions' ]
-
Edit the
{project_dir}/urls.py
module in your project:from django_db_schema_renderer.urls import schema_urls urlpatterns = [ ... path("db-schema/", include((schema_urls, "db-schema"))), ... ]
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
Close
Hashes for django_db_schema_renderer-0.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0337e95656e1697056f140e6a5237ea965168aa99aa91f17dbc50331edbd5be8 |
|
MD5 | 7eac66f10216d15366920b353eeba563 |
|
BLAKE2b-256 | 5ae8766016aecb62c4a5461d853695f95bcf7ded0dfb2a5ffbaf569c4bb8ab16 |
Close
Hashes for django_db_schema_renderer-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80108e744d8fb5a8fe33ce893b03a83366c70cff1481647d6f58dabcfe53cc54 |
|
MD5 | 283d3e756269357ef79b56e3e2bbbcf8 |
|
BLAKE2b-256 | 43b9ec64900dbe95a6d8e1340e82e5e6f109dea3434cb10174404a1557f52665 |