Show the SQLite warning when the DEBUG variable is False.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -27,7 +27,7 @@ logger = logging.getLogger(__name__)
|
|||||||
|
|
||||||
|
|
||||||
def check_for_sqlite():
|
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():
|
def check_version():
|
||||||
|
|||||||
Reference in New Issue
Block a user