mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Refs #31055 -- Added --database option to the check management command.
This avoids enabling the ``database`` checks unless they are explicitly requested and allows to disable on a per-alias basis which is required when only creating a subset of the test databases. This also removes unnecessary BaseCommand._run_checks() hook.
This commit is contained in:
parent
9cc743d0c8
commit
0b83c8cc4d
10 changed files with 66 additions and 56 deletions
|
@ -106,6 +106,16 @@ For example, to perform only models and compatibility checks, run::
|
|||
|
||||
django-admin check --tag models --tag compatibility
|
||||
|
||||
.. django-admin-option:: --database DATABASE
|
||||
|
||||
.. versionadded:: 3.1
|
||||
|
||||
Specifies the database to run checks requiring database access::
|
||||
|
||||
django-admin check --database default --database other
|
||||
|
||||
By default, these checks will not be run.
|
||||
|
||||
.. django-admin-option:: --list-tags
|
||||
|
||||
Lists all available tags.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue