0

因此,我的项目根目录中有 endpoints_proto_datastore 文件夹,但每次尝试运行它时都会出现此错误....

File "C:\pythonworkspace\...\endpoints_proto_datastore\utils.py", line 8, in <module>
from endpoints_proto_datastore.ndb import model
ImportError: cannot import name model

有人有想法么?

4

1 回答 1

0

我认为你应该使用

从 endpoints_proto_datastore.ndb 导入 EndpointsModel

于 2015-01-04T07:31:00.443 回答