def __init__(self):
self.dbpool = adbapi.ConnectionPool(
dbapiName='MySQLdb',
host=settings.DB_HOST,
db=settings.DB,
user=settings.DB_NAME,
passwd=settings.DB_PASSWD,
cursorclass= MySQLdb.cursors.DictCursor,
charset = 'utf8',
use_unicode = False
)
评论列表
文章目录