MongoEngine

安裝 pip install mongoengine 鏈接數據庫 #方式一: connect('local') #方式二:指定端口和地址 connect('local',host='192.168.21',port=125) #方式三: connect('local',host='mongodb://localhost/local') ODM常見模型: StringField / ObjectId
相關文章
相關標籤/搜索