更新 config.py

master
wangsiyuan 2023-12-25 16:43:38 +08:00
parent f5e4386ba3
commit b47b0cb8b9
1 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,5 @@
# config.py # config.py
import pymysql
# app secretkey # app secretkey
SECRET_KEY = 'sUNiJ7QPulxrbmZD' SECRET_KEY = 'sUNiJ7QPulxrbmZD'
@ -6,9 +7,10 @@ SECRET_KEY = 'sUNiJ7QPulxrbmZD'
# 数据库连接配置 # 数据库连接配置
DB_CONFIG = { DB_CONFIG = {
'host': '42.193.20.110', 'host': '42.193.20.110',
'port': 8006, # 注意端口是数字,不是字符串
'user': 'test', 'user': 'test',
'password': 'X7gq9lbxqpDGbyCi', 'password': 'X7gq9lbxqpDGbyCi',
'database': 'test_db', 'database': 'test_db',
'charset': 'utf8mb4', 'charset': 'utf8mb4',
'cursorclass': 'pymysql.cursors.DictCursor' 'cursorclass': pymysql.cursors.DictCursor
} }