Print DDL of your models without connecting to an actual database
Project description
DDL Print
DDLPrint is a Django app that prints the DDL of your models without connecting to an actual database, and without relying on your migrations.
Installation
- Install the
ddlprint
package:
pip install ddlprint
Configuration
- Add
ddl_print
to your Django project'sINSTALLED_APPS
insettings.py
:
INSTALLED_APPS = [
...,
'ddl_print',
...
]
Usage
- Print the DDL using your default DB driver by running the
ddl
management command:
python manage.py ddl
- You can specify a specific DB driver by passing the alias to the --db_alias flag. You can find more info on how to set up different DB drivers here https://docs.djangoproject.com/en/5.0/ref/databases/.
python manage.py ddl --db_alias mycoolalias
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ddl_print-0.1a0.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for ddl_print-0.1a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d25aed84a0c4f575501af61d76abda26218521581c4111ced9e8c36c422afa9 |
|
MD5 | 58ab348f1411c5431a1cdb58998758a7 |
|
BLAKE2b-256 | 5584bfac3cf03eb2b7e0d7c3fd7f8dd40cf90116acdd7f5d82396f29a782705f |