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.3.0.tar.gz
(485.3 kB
view hashes)
Built Distribution
Close
Hashes for django_schema_viewer-0.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 237d1a6551ecb413ef4c3bcbc898de06ea0ea0ab52b651337e80ca753d9d0538 |
|
MD5 | 78d70bdd693f49330f86a77efbdcc08c |
|
BLAKE2b-256 | c7028a13dd75e9480774fba9c2f335d8e7689c7dca57da8278c6a47e3dbcf890 |
Close
Hashes for django_schema_viewer-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfc030943d727e12838773ecb3b88da4d311df770497919245377266cd375d9f |
|
MD5 | b4ff59cbaf9c3f7de1cf97d0432b038a |
|
BLAKE2b-256 | b3faa72ebe4ff98f0eccdc46d2f32066bddd3e2e6676500614f58a4208f94397 |