You can add condition based on `DISABLE_SYSTEM_CHECKS` setting in
`django.core.checks.registry.CheckRegistry.run_checks`:
{{{
def run_checks(self, app_configs=None, tags=None,
include_deployment_checks=False):
""" Run all registered checks and return list of Errors and
Warnings.
"""
if getattr(settings, 'DISABLE_SYSTEM_CHECKS', None):
return []
}}}
This should be enough to disable checks, but Django still prints out:
{{{
Performing system checks...
System check identified no issues (0 silenced).
}}}
I would like to make complete patch / pull requests, if you will accept an
idea o disabiling system checks.
--
Ticket URL: <https://code.djangoproject.com/ticket/25234>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Comment:
What about re-using ` SILENCED_SYSTEM_CHECKS` with an `'__all__'` value
instead?
--
Ticket URL: <https://code.djangoproject.com/ticket/25234#comment:1>
Comment (by timgraham):
[https://groups.google.com/d/topic/django-
developers/vMH7CVGHldo/discussion django-developers discussion]
--
Ticket URL: <https://code.djangoproject.com/ticket/25234#comment:2>
* status: new => closed
* resolution: => wontfix
Comment:
I'm not yet convinced there is a strong demand for disabling all checks
instead of disabling the ones that you don't find useful or give false-
positives on your project. Will happily reopen if the mailing list
discussion decides otherwise.
--
Ticket URL: <https://code.djangoproject.com/ticket/25234#comment:3>
Comment (by cknoll):
Although this feature has been closed several years ago as *wontfix* it
seems like it has been fixed anyway. Quoting
[https://docs.djangoproject.com/en/4.1/ref/django-admin/#runserver]:
{{{
Changed in Django 4.0:
Support for the --skip-checks option was added.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25234#comment:4>