Import server side cursor setting from .env

This commit is contained in:
Keannu Christian Bernasol 2024-09-04 12:46:16 +08:00
parent c74b339929
commit 24233506c4
2 changed files with 2 additions and 1 deletions

View file

@ -227,7 +227,7 @@ DATABASES = {
"default": {
"ENGINE": "django.db.backends.postgresql",
# Set to True to avoid issues with pgbouncer when pooling connections
'DISABLE_SERVER_SIDE_CURSORS': True,
'DISABLE_SERVER_SIDE_CURSORS': get_secret("DB_DISABLE_SERVER_SIDE_CURSORS"),
"NAME": get_secret("DB_DATABASE"),
"USER": get_secret("DB_USERNAME"),
"PASSWORD": get_secret("DB_PASSWORD"),