From 48e38fb9cf8f85b2b3be63487899601ee249186f Mon Sep 17 00:00:00 2001 From: erjemin Date: Wed, 3 Jun 2026 22:09:07 +0300 Subject: [PATCH] =?UTF-8?q?mod:=20=D0=B2=D0=B0=D0=BA=D1=83=D1=83=D0=BC=20?= =?UTF-8?q?=D0=B8=20=D0=B2=D1=80=D0=B5=D0=BC=D1=8F=20=D0=B6=D0=B8=D0=B7?= =?UTF-8?q?=D0=BD=D0=B8=20=D0=BA=D0=BE=D0=BD=D0=BD=D0=B5=D0=BA=D1=82=D0=B0?= =?UTF-8?q?=20=D1=81=20=D0=91=D0=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lpon_site/lpon_site/settings.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lpon_site/lpon_site/settings.py b/lpon_site/lpon_site/settings.py index 10da162..ff76cdb 100644 --- a/lpon_site/lpon_site/settings.py +++ b/lpon_site/lpon_site/settings.py @@ -101,8 +101,10 @@ DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': BASE_DIR.parent.joinpath('database', env('DJANGO_SQLITE_NAME', default='lpon-db.sqlite3')), + 'CONN_MAX_AGE': 600, # время жизни соединения с базой 'OPTIONS': { 'timeout': 25, + 'init_command': "PRAGMA journal_mode=WAL; PRAGMA auto_vacuum=2;", }, } }