From a934ff1a80e11ae2d900b9f79d16e1c07eb6c083 Mon Sep 17 00:00:00 2001 From: wangsiyuan <2392948297@qq.com> Date: Thu, 28 Dec 2023 17:08:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20config.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/config.py b/config.py index 9ae6bad..0db31d4 100644 --- a/config.py +++ b/config.py @@ -1,9 +1,15 @@ # config.py import pymysql - -# app secretkey +import logging +# 设置session SECRET_KEY SECRET_KEY = 'sUNiJ7QPulxrbmZD' +# 配置日志 +LOGGING_CONFIG = { + 'level': logging.INFO, + 'format': '%(asctime)s - %(levelname)s - [%(filename)s:%(funcName)s] - %(message)s' +} + # 数据库连接配置 DB_CONFIG = { 'host': '42.193.20.110',