diff --git a/accounts/settings.py b/accounts/settings.py index da06a48..8211e1d 100644 --- a/accounts/settings.py +++ b/accounts/settings.py @@ -178,10 +178,12 @@ DATABASES = { 'PASSWORD': config('DB_PASSWORD'), 'HOST': config('DB_HOST', '127.0.0.1'), 'PORT': config('DB_PORT', ''), + "CONN_MAX_AGE": 0, + "OPTIONS": { + "pool": True, + }, }, - "OPTIONS": { - "pool": True, - }, + } # Password validation