from peewee import * from playhouse.pool import PooledMySQLDatabase database = PooledMySQLDatabase('yixue', user='yixue', password='Lai123', host='test.db.cxhy.cn', port=3306, max_connections=32, stale_timeout=300, ) class UnknownField(object): def __init__(self, *_, **__): pass class BaseModel(Model): class Meta: database = database