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.1.1.tar.gz
(451.7 kB
view hashes)
Built Distribution
Close
Hashes for django_schema_viewer-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d53b0c061a8daf5f742a47e682f77056a52ff79f0b6f0193114a9203e337e64 |
|
MD5 | 6e40c804e1139e0e5cf2cadf5334b9da |
|
BLAKE2b-256 | 91f1d48c9baa0d22f3b567c96a05b2095895869ad33e65b0a277f857ac00cfc8 |
Close
Hashes for django_schema_viewer-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ce1ac8077a216f4dbcaabad9e142fa7145f931bd0122ae88bd4e721400dde0c |
|
MD5 | ebeeac50fb9266a46c4ad54358a9d2e4 |
|
BLAKE2b-256 | 2b2a533a6f2fd0f7b0d20b37799db3fde5f06268473b4491240c62ce7fe35a44 |