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_rendererto yourINSTALLED_APPSsetting, beforedjango.contrib.admin(make sure you havedjango-extensionsalso added)INSTALLED_APPS = [ 'django_db_schema_renderer', 'django.contrib.admin', ... 'django-extensions' ]
-
Edit the
{project_dir}/urls.pymodule 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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_db_schema_renderer-0.1.2.tar.gz.
File metadata
- Download URL: django_db_schema_renderer-0.1.2.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.1 CPython/3.11.0 Darwin/22.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0337e95656e1697056f140e6a5237ea965168aa99aa91f17dbc50331edbd5be8
|
|
| MD5 |
7eac66f10216d15366920b353eeba563
|
|
| BLAKE2b-256 |
5ae8766016aecb62c4a5461d853695f95bcf7ded0dfb2a5ffbaf569c4bb8ab16
|
File details
Details for the file django_db_schema_renderer-0.1.2-py3-none-any.whl.
File metadata
- Download URL: django_db_schema_renderer-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.1 CPython/3.11.0 Darwin/22.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80108e744d8fb5a8fe33ce893b03a83366c70cff1481647d6f58dabcfe53cc54
|
|
| MD5 |
283d3e756269357ef79b56e3e2bbbcf8
|
|
| BLAKE2b-256 |
43b9ec64900dbe95a6d8e1340e82e5e6f109dea3434cb10174404a1557f52665
|