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. Also it's not supported in the SDK.
它仅可在Python 2.7上使用,并且在开发服务器中不受支持(如@Guido van Rossum所说),只是将其上传到GAE服务器上
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.