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.1.tar.gz
(485.4 kB
view hashes)
Built Distribution
Close
Hashes for django_schema_viewer-0.3.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e78cac5133ab152ba52a439a4e570230e496b6509e6107a41ce0b9e4a643c4f |
|
MD5 | 8fd37d0144e4beeceedf589a2358669a |
|
BLAKE2b-256 | 71a849efb60e694921d65fd00ade7e0d89b9ae993e0f9568aae1d9de587359ef |
Close
Hashes for django_schema_viewer-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8baf26658834ef2e3fa26a51ab9481a16ecde625028f34f4749e8483a59fd5f |
|
MD5 | 30dfed0f9f6fdbaa9caf157dc63cd674 |
|
BLAKE2b-256 | b02ab09116f3ded4fec3a8e118bf7de792b5adb89342b6ff9c6a0263d9b0df3b |