Skip to content

bianchimro/django-inspectdb

This branch is 8 commits ahead of sorl/django-inspectdb:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

74e0899 · Oct 20, 2018

History

12 Commits
Feb 19, 2012
May 17, 2011
May 17, 2011
Oct 20, 2018
Feb 19, 2012
May 18, 2011

Repository files navigation

django-inspectdb

A fork of Django management command inspectdb. It was first created to get the correct max_length of MySQL inspection, see ticket #5725.

Installation

First install the package using pip:

pip install django-inspectdb

Add it to your INSTALLED_APPS:

INSTALLED_APPS = (
    ...
    'inspectdb',
    ...
)

Usage

Just use it as the normal inspectdb management command:

python manage.py inspectdb > models.py

The following command-line switches are available:

-d,--database

python manage.py inspectdb -d yourdbname > models.py

-t,--tables

python manage.py inspectdb -t yourtablename1,yourtablename2 > models.py

-e,--exclude-tables

python manage.py inspectdb -e yourtablename1,yourtablename2 > models.py

About

Better inspectdb

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%