Auto-generate Entity-Relationship Diagrams for a Django project using Mermaid
Project description
django-er-diagram
Auto-generate Entity-Relationship diagrams for a Django project using Mermaid
Installation
Install this library using pip:
pip install django-er-diagram
Usage
-
Add
django_er_diagramto your list of installed apps. -
Optionally enter your user settings in
settings.py
DJANGO_ER_DIAGRAM_ONLY_APPS = ... # List of apps to generate diagrams for
DJANGO_ER_DIAGRAM_IGNORE_APPS = ... # List of apps to ignore generating diagrams for
DJANGO_ER_DIAGRAM_OUTPUT_FORMAT = ... # Output format, options are "md" and "html"
DJANGO_ER_DIAGRAM_OUTPUT_DIRECTORY = ... # Output directory name
- Navigate to the root directory of the project and run the following command along with any command arguments you'd like to specify.
python3 manage.py generate_diagrams
- The Entity-Relationship Diagrams for each specified app will be generated in the specified output format and saved to the specified destination directory. For the
htmlformat, anerd_index.htmlfile will be created in the project's root directory. That file can be used to navigate through the various app diagrams.
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_er_diagram-3.4.0.tar.gz.
File metadata
- Download URL: django_er_diagram-3.4.0.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6d2e1f88e384e6e1634f9a3337c28606cb6c2e3219eef86ece9cdb5094a6318
|
|
| MD5 |
03416b0136083038257ef2bf3d70c04a
|
|
| BLAKE2b-256 |
179d90f8a24658598d91cb29acc587406f93b25101da10805d50693928268c2d
|
File details
Details for the file django_er_diagram-3.4.0-py3-none-any.whl.
File metadata
- Download URL: django_er_diagram-3.4.0-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38817b7565535cdc273194d2dc96996cc68b1073c26306c4c7e163ad59437874
|
|
| MD5 |
62f59dfe6e96b9616ea9440987ebeee6
|
|
| BLAKE2b-256 |
55e1c6c9e4f2c75e0678703a5205b5d37e5edd348aad272955417f6d21e815d3
|