From d534dfe65ba74f8d1e5faf8b05473ebae5bb95f5 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Tue, 10 Apr 2018 03:11:23 -0400 Subject: [PATCH] Show the SQLite warning when the DEBUG variable is False. Signed-off-by: Roberto Rosario --- mayan/apps/common/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mayan/apps/common/utils.py b/mayan/apps/common/utils.py index a0705bef48..2e41073b48 100644 --- a/mayan/apps/common/utils.py +++ b/mayan/apps/common/utils.py @@ -27,7 +27,7 @@ logger = logging.getLogger(__name__) def check_for_sqlite(): - return settings.DATABASES['default']['ENGINE'] == DJANGO_SQLITE_BACKEND + return settings.DATABASES['default']['ENGINE'] == DJANGO_SQLITE_BACKEND and settings.DEBUG is False def check_version():