[英]Trying to Import background_thread from google.appengine.api (like in example) fails with ImportError
Simply doing... 只是做...
from google.appengine.api import background_thread
...like in the official documentation , fails for me with... ...就像官方文档中一样 ,对我来说失败...
<type 'exceptions.ImportError'>: cannot import name background_thread
...when calling it from my backend. ...从我的后端调用时。
How do I get this to import properly? 我该如何正确导入?
It's a Python 2.7 only feature. 这是仅python 2.7的功能。 Also it's not supported in the SDK.
另外,SDK不支持它。
它仅可在Python 2.7上使用,并且在开发服务器中不受支持(如@Guido van Rossum所说),只是将其上传到GAE服务器上
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.