django-schema-viewer
                                
                                 django-schema-viewer copied to clipboard
                                
                                    django-schema-viewer copied to clipboard
                            
                            
                            
                        Visualizes a DB schema based on Django models
django-schema-viewer
Visualizes a DB schema based on Django models.
Installation
pip install django-schema-viewer
Usage
- 
Install the package 
- 
Add schema_viewerto yourINSTALLED_APPSsettings like this:
INSTALLED_APPS = [
    ...,
    'schema_viewer',
    ...,
]
- Add schema_viewer.urlsto mainurls.py:
from django.urls import path, include
urlpatterns = [
    ...,
    path('schema-viewer/', include('schema_viewer.urls')),
    ...,
]
- Run the project
python manange.py runserver
- Go to http://127.0.0.1:8000/schema-viewer/
Optional settings
SCHEMA_VIEWER = {
    'apps': [
        'contenttypes',
        'my_app',
    ],
    'exclude': {
        'auth': ['User'],
        'my_app': ['SomeModel'],
    },
}
License
MIT
