Skip to main content

No project description provided

Project description

django-schema-viewer

GitHub Actions badge PyPI - Version PyPI - Python Version PyPI - Django Version PyPI - License

framework - Django Hatch project Ruff

Visualizes a DB schema based on Django models.

django-schema-viewer demo

Installation

pip install django-schema-viewer

Usage

  1. Install the package

  2. Add schema_viewer to your INSTALLED_APPS settings like this:

INSTALLED_APPS = [
    ...,
    'schema_viewer',
    ...,
]
  1. Add schema_viewer.urls to main urls.py:
from django.urls import path, include

urlpatterns = [
    ...,
    path('schema-viewer/', include('schema_viewer.urls')),
    ...,
]
  1. Run the project
python manange.py runserver
  1. Go to http://127.0.0.1:8000/schema-viewer/

Optional settings

SCHEMA_VIEWER = {
    'apps': [
        'contenttypes',
        'my_app',
    ],
    'exclude': {
        'auth': ['User'],
        'my_app': ['SomeModel'],
    },
}

License

MIT

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_schema_viewer-0.4.1.tar.gz (485.7 kB view details)

Uploaded Source

Built Distribution

django_schema_viewer-0.4.1-py3-none-any.whl (492.1 kB view details)

Uploaded Python 3

File details

Details for the file django_schema_viewer-0.4.1.tar.gz.

File metadata

  • Download URL: django_schema_viewer-0.4.1.tar.gz
  • Upload date:
  • Size: 485.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.26.0

File hashes

Hashes for django_schema_viewer-0.4.1.tar.gz
Algorithm Hash digest
SHA256 824b81f443d7d8e8ae39bfd3dd412b8337807701dab3a94bc46248728b14a521
MD5 b199f6ee97a728e5344610b4d57a0e42
BLAKE2b-256 b5b2902cc8671673b2860325ea590c5a4bcf8454b7ea3d90e913bf58f4ddc818

See more details on using hashes here.

File details

Details for the file django_schema_viewer-0.4.1-py3-none-any.whl.

File metadata

File hashes

Hashes for django_schema_viewer-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a111c8e6aae4c6b154122580e1cea8c9ae3ac5399a81e5c4a57f534151d24cca
MD5 f30a47bbe471160579d97f0282244ff2
BLAKE2b-256 66a377a57618fe3a3c6f208b6c8ce612f9b484a0faab55719bd4f3bbf4206fb7

See more details on using hashes here.

Supported by

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