Skip to main content

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

  1. Install using pip...

    pip install django-db-schema-renderer

  2. Add django_db_schema_renderer to your INSTALLED_APPS setting, before django.contrib.admin(make sure you have django-extensions also added)

    INSTALLED_APPS = [
        'django_db_schema_renderer',
        'django.contrib.admin',
        ...
        'django-extensions'
    
    ]
    
  3. 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


Download files

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

Source Distribution

django_db_schema_renderer-0.1.2.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

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

django_db_schema_renderer-0.1.2-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

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

Hashes for django_db_schema_renderer-0.1.2.tar.gz
Algorithm Hash digest
SHA256 0337e95656e1697056f140e6a5237ea965168aa99aa91f17dbc50331edbd5be8
MD5 7eac66f10216d15366920b353eeba563
BLAKE2b-256 5ae8766016aecb62c4a5461d853695f95bcf7ded0dfb2a5ffbaf569c4bb8ab16

See more details on using hashes here.

File details

Details for the file django_db_schema_renderer-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for django_db_schema_renderer-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 80108e744d8fb5a8fe33ce893b03a83366c70cff1481647d6f58dabcfe53cc54
MD5 283d3e756269357ef79b56e3e2bbbcf8
BLAKE2b-256 43b9ec64900dbe95a6d8e1340e82e5e6f109dea3434cb10174404a1557f52665

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