diff options
| author | bquinn <brendan@cluefulmedia.com> | 2018-01-09 16:04:56 +0000 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-01-27 18:51:40 -0500 |
| commit | c2b969e124f65d375aac969f253279085b6f7078 (patch) | |
| tree | 9e484478a50e0815ed8cadee122dd5d0c6914856 /docs/ref | |
| parent | 92f48680dbd2e02f2b33f6ad0e35b7d337889fb2 (diff) | |
Fixed #29004 -- Added inspectdb --include-views option.
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/django-admin.txt | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt index 84ed59aa51..cf64fbfe0b 100644 --- a/docs/ref/django-admin.txt +++ b/docs/ref/django-admin.txt @@ -350,8 +350,11 @@ Specifies the database to flush. Defaults to ``default``. Introspects the database tables in the database pointed-to by the :setting:`NAME` setting and outputs a Django model module (a ``models.py`` -file) to standard output. You may choose what tables to inspect by passing -their names as arguments. +file) to standard output. + +You may choose what tables or views to inspect by passing their names as +arguments. If no arguments are provided, models are created for views only if +the :option:`--include-views` option is used. Use this if you have a legacy database with which you'd like to use Django. The script will inspect the database and create a model for each table within @@ -405,6 +408,12 @@ it because ``True`` is its default value). Specifies the database to introspect. Defaults to ``default``. +.. django-admin-option:: --include-views + +.. versionadded:: 2.1 + +If this option is provided, models are also created for database views. + ``loaddata`` ------------ |
