Why check --deploy misses it
check --deploy does not evaluate database driver socket health or cloud timeout lifecycles.
# settings.py (Django 4.1+)
DATABASES = {
"default": {
"ENGINE": "django.db.backends.postgresql",
# ...
"CONN_MAX_AGE": 60, # Reuse connection for up to 60 seconds
"CONN_HEALTH_CHECKS": True, # Test socket liveness before query execution
}
}