From ea04edf89de23b806779b484c33b095e5e620a9f Mon Sep 17 00:00:00 2001 From: sftang Date: Thu, 22 Sep 2022 17:05:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0sqlite=E8=B6=85=E6=97=B6,?= =?UTF-8?q?=E8=A7=A3=E5=86=B3=E9=94=81=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pthelper/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pthelper/settings.py b/pthelper/settings.py index ecab992..9927a15 100644 --- a/pthelper/settings.py +++ b/pthelper/settings.py @@ -163,7 +163,7 @@ WSGI_APPLICATION = 'pthelper.wsgi.application' DATABASES = { # 默认读取os.environ['DATABASE_URL'],不存在则使用sqlite - 'default': env.db('DATABASE_URL', default="sqlite:///" + os.path.join(BASE_DIR,'db','pthelper.sqlite3')), + 'default': env.db('DATABASE_URL', default="sqlite:///" + os.path.join(BASE_DIR,'db','pthelper.sqlite3?timeout=20')), #'default': env.db(), # read os.environ['SQLITE_URL']