Skip to main content

Auto-generate Entity-Relationship Diagrams for a Django project using Mermaid

Project description

django-er-diagram

PyPI

Auto-generate Entity-Relationship diagrams for a Django project using Mermaid

Installation

Install this library using pip:

pip install django-er-diagram

Usage

  1. Add django_er_diagram to your list of installed apps.

  2. 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
  1. 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
  1. 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 html format, an erd_index.html file will be created in the project's root directory. That file can be used to navigate through the various app diagrams.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_er_diagram-3.4.0.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_er_diagram-3.4.0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

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

Hashes for django_er_diagram-3.4.0.tar.gz
Algorithm Hash digest
SHA256 a6d2e1f88e384e6e1634f9a3337c28606cb6c2e3219eef86ece9cdb5094a6318
MD5 03416b0136083038257ef2bf3d70c04a
BLAKE2b-256 179d90f8a24658598d91cb29acc587406f93b25101da10805d50693928268c2d

See more details on using hashes here.

File details

Details for the file django_er_diagram-3.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_er_diagram-3.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 38817b7565535cdc273194d2dc96996cc68b1073c26306c4c7e163ad59437874
MD5 62f59dfe6e96b9616ea9440987ebeee6
BLAKE2b-256 55e1c6c9e4f2c75e0678703a5205b5d37e5edd348aad272955417f6d21e815d3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page