#25234: Possibility to disable System Checks
--------------------------------------------+--------------------
Reporter: marcinn | Owner: nobody
Type: New feature | Status: new
Component: Core (Management commands) | Version: 1.8
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------------+--------------------
I need to disable whole system checks. I don't need them. Silencing is not
a solution, because still prints lots of unwanted messages and slowdowns
command`s startup.
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.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/050.466970f7435e39b638f066ffbd02ff50%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.