Skip to main content

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

  1. Install the ddlprint package:
pip install ddlprint

Configuration

  1. Add ddl_print to your Django project's INSTALLED_APPS in settings.py:
INSTALLED_APPS = [
    ...,
    'ddl_print',
    ...
]

Usage

  1. Print the DDL using your default DB driver by running the ddl management command:
python manage.py ddl
  1. 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


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)

Uploaded Source

Built Distribution

ddl_print-0.1a0-py3-none-any.whl (3.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page