Skip to content

This python script create DBML code from Django models for drawing database diagram.

Notifications You must be signed in to change notification settings

tnptm/djangoToDBML

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

djangoToDBML

This python script creates DBML code from Django models for drawing database diagram.

The script is for a service in https://dbdiagram.io to create DBML code for drawing db design and reading Django's models.py for generating database model of it, over schema limits.

Usage: python3 gen_code_for_dbdiagamio.py [-s] [-c views starting tag] [--user=django-user-table] models-file

The models which are database views should be placed to the end of the models file using one tag for telling where they are starting. The views are commented because they are not considered as tables.

About

This python script create DBML code from Django models for drawing database diagram.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages