GAE NDB install deployed

前端 未结 1 908
广开言路
广开言路 2021-01-29 02:08

My Google App Engine app uses Datastore NDB. So I am importing:

from google.appengine.ext import ndb

but when I deploy and go to my app there is an

相关标签:
1条回答
  • 2021-01-29 02:55

    You didn't say which runtime you're trying to deploy to (Python 2.7 or 3.7) but I'm guessing it's 3.7.

    The google.appengine module is only available in the first-generation Python 2.7 runtime. If you need to use it, you will need to deploy your app to this runtime.

    From Using the ndb client library:

    The ndb client library is not compatible with the Python 3.7 runtime. For more information, see differences between the Python 2.7 and Python 3.7 runtimes on the App Engine standard environment.

    0 讨论(0)
提交回复
热议问题