16 lines
361 B
Python
16 lines
361 B
Python
# config.py
|
|
import pymysql
|
|
|
|
# app secretkey
|
|
SECRET_KEY = 'sUNiJ7QPulxrbmZD'
|
|
|
|
# 数据库连接配置
|
|
DB_CONFIG = {
|
|
'host': '42.193.20.110',
|
|
'port': 8006, # 注意端口是数字,不是字符串
|
|
'user': 'test',
|
|
'password': 'X7gq9lbxqpDGbyCi',
|
|
'database': 'test_db',
|
|
'charset': 'utf8mb4',
|
|
'cursorclass': pymysql.cursors.DictCursor
|
|
} |