No project description provided
Project description
django-schema-viewer
Visualizes the DB schema based on Django models.
Installation
pip install django-schema-viewer
Usage
-
Install the package
-
Add
schema_viewer
to yourINSTALLED_APPS
settings like this:
INSTALLED_APPS = [
...,
'schema_viewer',
...,
]
- Add
schema_viewer.urls
to mainurls.py
:
from django.urls import path, include
urlpatterns = [
...,
path('schema-viewer', include('schema_viewer.urls')),
...,
]
- Run the project
python manange.py runserver
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.0.tar.gz
(485.6 kB
view hashes)
Built Distribution
Close
Hashes for django_schema_viewer-0.4.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03fe69bf2041d6a0a5e01ec908b129471c04d17cafdc938fea36420ce2bfebef |
|
MD5 | 8f35139143463473b10dcfd5758a9a2a |
|
BLAKE2b-256 | 38b80614198be5341fa957a9d5496b66334cd6d3ad6f4de1a3cc154547adc45b |
Close
Hashes for django_schema_viewer-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd28e82d28e6b51e83bf7fcb61bf24c20056a320968b891464b32ef1909e0af5 |
|
MD5 | 462fcbd40dab0e022e991dab23c7f73f |
|
BLAKE2b-256 | c2aa2ae5846ff52bf12e71a090dce4cb61ac367032dbd0923efe258e738f02d8 |