diff --git a/project_name/settings.py b/project_name/settings.py index 77698d4..10229b3 100644 --- a/project_name/settings.py +++ b/project_name/settings.py @@ -88,7 +88,13 @@ # Database # https://docs.djangoproject.com/en/{{ docs_version }}/ref/settings/#databases -DATABASES = {"default": dj_database_url.parse(config.DATABASE_URL)} +DATABASES = { + "default": dj_database_url.parse( + config.DATABASE_URL, + conn_max_age=600, + conn_health_checks=True, + ) +} # Password validation