摘要: 数据库的连接池建议放在类似settings.py的配置模块中,因为基本都是配置项,方便统一管理。 1) 连接池类#settings.py import os from DBUtils.PooledDB import PooledDB from elasticsearch import Elastic 阅读全文
posted @ 2020-01-18 10:00 风云_就是她了 阅读(736) 评论(0) 推荐(0) 编辑