This commit is contained in:
2022-11-24 10:56:15 +08:00
9 changed files with 93 additions and 351 deletions

View File

@ -8,8 +8,8 @@ DEBUG = True
SECRET_KEY = 'WugjsfiYBEVsiQfiSwEbIOEAGnOIFYqoOYHEIK'
# 数据库配置
# SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://deepLearner:dp2021@124.71.203.3:5432/demo'
SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://demo:demo123@192.168.2.9:3306/flask_demo'
SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://deepLearner:dp2021@124.71.203.3:5432/demo'
#SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://demo:demo123@192.168.2.9:3306/flask_demo'
SQLALCHEMY_TRACK_MODIFICATIONS = False
# 查询时会显示原始SQL语句
SQLALCHEMY_ECHO = True
@ -21,7 +21,7 @@ SQLALCHEMY_ECHO = True
db = {
'host': '127.0.0.1',
'user': 'root',
'password': '',
'password': 'sdust2020',
'port': 6379,
'database': 'school',
'charset': 'utf8',