Flask项目里面,如何同时使用MySQL和MongoDB,Sqlalchemy和MongoEngine?frommongoengineimport*importdatetimeclassPage(Document):title=StringField(max_length=200,required=True)date_modified=ateTimeField(default=datetime.datetime.now)author=xxxx????【这里怎么关联到User呢??手工?】=======fromsqlalchemyimportColumn,Integer,StringclassUser(Base):__tablename__='users'id=Column(Integer,primary_key=True)name=Column(String)fullname=Column(String)password=Column(String)
动漫人物
元芳怎么了
相关分类