No project description provided
Project description
django-schema-viewer
Visualizes the DB schema based on Django models
Installation
pip install django-schema-viewer
Quick start
-
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.0.tar.gz
(451.6 kB
view hashes)
Built Distribution
Close
Hashes for django_schema_viewer-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a519606f6f4c11379327310eddd4dbe3f3df04807f69500b3b310dda90dcd56b |
|
MD5 | 9cca1e56736599509804c2d85cbb696f |
|
BLAKE2b-256 | 183cc54698ea39ccba164a8ac04a42f81dafe9e88566b2c0f9eef2887c05837a |
Close
Hashes for django_schema_viewer-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e43f45db4c03429de7c11788851bde96d837dbd913d2c10eea6d489e9d05c068 |
|
MD5 | d8966d1d6b488cc5d3e490797b1ce456 |
|
BLAKE2b-256 | 8ad1e5daf6d5cae23bf7df22a8c128932647a546c77cf50392827dafcca86f39 |