Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/makecodes/django-dbml
This app can generate a DBML output for all installed models.
https://github.com/makecodes/django-dbml
Last synced: 8 days ago
JSON representation
This app can generate a DBML output for all installed models.
- Host: GitHub
- URL: https://github.com/makecodes/django-dbml
- Owner: makecodes
- License: unlicense
- Created: 2020-06-04T17:42:06.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-03-06T23:51:36.000Z (9 months ago)
- Last Synced: 2024-03-14T20:22:04.981Z (9 months ago)
- Language: Python
- Size: 43 KB
- Stars: 17
- Watchers: 3
- Forks: 10
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - makecodes/django-dbml - This app can generate a DBML output for all installed models. (Python)
README
# Django DBML generator
This app can generate a DBML output for all installed models.
## How to install and use?
#### 1. Install the django-dbml package
```
pip install django-dbml
```#### 2. Put django_dbml on your django settings
```python
'...',
'django_dbml',
'...',
```#### 3. Run the command to generate a DBML schema based on your Django models
```bash
$ python manage.py dbml
```To generate DBML for a subset of your models, specify one or more Django app
names or models by app_label or app_label.ModelName. Related tables will still
be included in the DBML.# Thanks
The initial code was based on https://github.com/hamedsj/DbmlForDjango project