From: Guillaume Pellerin Date: Thu, 25 Apr 2024 09:29:30 +0000 (+0200) Subject: avoid some warnings in prod X-Git-Tag: 2.11.0~21 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=f64d7c9c67ae9fcab9251e41f672733bd469f124;p=teleforma.git avoid some warnings in prod --- diff --git a/app/settings.py b/app/settings.py index d158d8cb..d421cf7c 100644 --- a/app/settings.py +++ b/app/settings.py @@ -57,6 +57,8 @@ ASGI_APPLICATION = "teleforma.ws.routing.application" warnings.showwarning = lambda *x: None SILENCED_SYSTEM_CHECKS = ["fields.W342"] +if not DEBUG: + SILENCED_SYSTEM_CHECKS += ["fields.W003", "fields.W005"] ROOT_URLCONF = 'urls'