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.2.0.tar.gz
(478.2 kB
view hashes)
Built Distribution
Close
Hashes for django_schema_viewer-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5087ca2ca17369ba8969fab3b977a00bed23660febc58d7787d07d65e444ef24 |
|
MD5 | b3df4e20c3b2c8017e796fc491acb1eb |
|
BLAKE2b-256 | 5b29d40b712db33e68aaefa6d777033e541406cdbc239203f0dbf60a38a0be56 |
Close
Hashes for django_schema_viewer-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cce9ea526794fd6727033877bff8132451b3035b54a46fe3f7ea4848474cfb7e |
|
MD5 | 2a3dd3e4b2ef092695beb486aa4bfe57 |
|
BLAKE2b-256 | 464c31ed793c637677d638e8e60fee9bd7fbefb5bad5b8d47d728411ace305bf |