From 673f525d30f6ffb44765714cd2c633cf3800fbfa Mon Sep 17 00:00:00 2001 From: Sayyid Hamid Mahdavi Date: Sat, 20 Dec 2025 14:04:05 +0330 Subject: [PATCH] connection pool --- accounts/settings.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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