python的api中config的setting


mysql_info = {
'host': '118.24.3.41', # ip
'port': 3306, # 端口号
'password': '123456', # 密码
'user': 'jxz', # 用户
'db': 'jxz', # 数据库
'charset': 'utf8',
'autocommit': True
}

redis_info = {
'host': '118.24.3.41', # ip
'port': 6379, # 端口号
'password': 'HK139bc&*', # 密码,
'db': 0,
'decode_responses':True
}

SALT = '!@#' # 盐

server_info = {
'port': 8888, # 端口号
'debug': True, # 是否调试模式
'host': '0.0.0.0'
}

posted on 2019-05-21 20:50  dongxl  阅读(494)  评论(0编辑  收藏  举报

导航