Hi,

You could add the setting through and env variable and obtain that variable
inside the settings file with
SILENCED_SYSTEM_CHECKS = bool(os.environ.get("SILENCED_SYSTEM_CHEKS",
false))


On Fri, Sep 30, 2016 at 11:31 AM Vlastimil Zíma <vlasti...@ziima.cz> wrote:

> Hi everyone,
>
> I'd suggest an options for all commands to suppress a defined system
> checks when running a command. I know it is possible to defined
> SILENCED_SYSTEM_CHECKS in settings, but that has impact of everything
> including the check command itself. My point is to suppress system checks
> mainly for cron jobs, so they don't report errors. I don't want to use
> settings because I don't want to suppress checks for migrate and other
> commands when deploying new version of application.
>
> I don't want to suppress checks for our commands either, since there is
> only option to suppress checks completely.
>
> Any support for this feature?
>
> Regards,
> Vlastimil
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to django-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-developers/554d79d7-1485-46c7-8ecd-352422382c00%40googlegroups.com
> <https://groups.google.com/d/msgid/django-developers/554d79d7-1485-46c7-8ecd-352422382c00%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Thanks,
Bogdan I. Bursuc

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAGqeRU-FihzfgGpTK%2BezcpSVZBVG9eg3i3AM%3DeqE2ukgMZjNhw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to