[Django] #36663: Make management commands default to running checks against all databases

6 views
Skip to first unread message

Django

unread,
Oct 14, 2025, 9:10:16 AM (11 days ago) Oct 14
to django-...@googlegroups.com
#36663: Make management commands default to running checks against all databases
-------------------------------------+-------------------------------------
Reporter: Tim Graham | Type: Bug
Status: new | Component: Core
| (System checks)
Version: dev | Severity: Normal
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
In 0b83c8cc4db95812f1e15ca19d78614e94cf38dd (refs #31055), many field
checks stopped running by default (see ticket:31286#comment:10 for a long
analysis), thus postponing warnings and errors that would be detected
`runserver` or `makemigrations` until `migrate`.

As proposed by Simon in ticket:31286#comment:9, the running of these
checks should be restored.
--
Ticket URL: <https://code.djangoproject.com/ticket/36663>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Oct 14, 2025, 9:10:39 AM (11 days ago) Oct 14
to django-...@googlegroups.com
#36663: Make management commands default to running checks against all databases
-------------------------------------+-------------------------------------
Reporter: Tim Graham | Owner: (none)
Type: Bug | Status: new
Component: Core (System | Version: dev
checks) |
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 1
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham):

* has_patch: 0 => 1
* needs_docs: 0 => 1

Comment:

[https://github.com/django/django/pull/19912 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/36663#comment:1>

Django

unread,
Oct 14, 2025, 9:16:44 AM (11 days ago) Oct 14
to django-...@googlegroups.com
#36663: Make management commands default to running checks against all databases
--------------------------------------+------------------------------------
Reporter: Tim Graham | Owner: (none)
Type: Bug | Status: new
Component: Core (System checks) | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 1
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by Simon Charette):

* cc: Simon Charette (added)
* stage: Unreviewed => Accepted

--
Ticket URL: <https://code.djangoproject.com/ticket/36663#comment:2>

Django

unread,
Oct 14, 2025, 9:48:16 AM (11 days ago) Oct 14
to django-...@googlegroups.com
#36663: Make management commands default to running checks against all databases
--------------------------------------+------------------------------------
Reporter: Tim Graham | Owner: (none)
Type: Bug | Status: new
Component: Core (System checks) | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 1
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Comment (by Tim Graham):

Simon, do you feel we shoul try to maintain the behavior: "Database checks
are not run by default because they do more than static code analysis as
regular checks do. They are only run by the `migrate` command or if you
specify configured database aliases using the `--database` option when
calling the `check` command."

I guess we would have to go back to detecting whether or not they
requested via `--tag=database`.
--
Ticket URL: <https://code.djangoproject.com/ticket/36663#comment:3>

Django

unread,
Oct 22, 2025, 2:08:01 AM (3 days ago) Oct 22
to django-...@googlegroups.com
#36663: Make management commands default to running checks against all databases
-------------------------------------+-------------------------------------
Reporter: Tim Graham | Owner: Varun
| Kasyap Pentamaraju
Type: Bug | Status: assigned
Component: Core (System | Version: dev
checks) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 1
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Varun Kasyap Pentamaraju):

* cc: Varun Kasyap Pentamaraju (added)
* owner: (none) => Varun Kasyap Pentamaraju
* status: new => assigned

--
Ticket URL: <https://code.djangoproject.com/ticket/36663#comment:4>

Django

unread,
Oct 22, 2025, 5:35:16 PM (2 days ago) Oct 22
to django-...@googlegroups.com
#36663: Make management commands default to running checks against all databases
-------------------------------------+-------------------------------------
Reporter: Tim Graham | Owner: Simon
| Charette
Type: Bug | Status: assigned
Component: Core (System | Version: dev
checks) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 1
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Jacob Walls):

* owner: Varun Kasyap Pentamaraju => Simon Charette

Comment:

Varun, notice this has only been in flight for 8 days and has recent
unanswered questions, it's not ready for the "vulture method" yet. Simon
can correct me if he does not wish to be the owner.
--
Ticket URL: <https://code.djangoproject.com/ticket/36663#comment:5>
Reply all
Reply to author
Forward
0 new messages