Error Python 2.7 on Google App Engine - Threadsafe cannot be enabled with CGI handler

前端 未结 2 1658
时光说笑
时光说笑 2021-02-18 15:41

I have tried to move to Python 2.7 from Python 2.5 but I keep getting the same error everytime.

I have made a very simple test in Python 2.5 working with the app.yaml fi

相关标签:
2条回答
  • 2021-02-18 16:15

    I've been having the same problem, and here's the answer.

    For the Python 2.5 runtime, you are specifying a path to a file -- ie script: myfolder/myfile.py.

    For the Python 2.7 runtime, you are specifying an Object. So assumping myfile.py contains an appropriate WSGI object 'app', it's specified as script: myfolder.myfile.app.

    0 讨论(0)
  • 2021-02-18 16:41

    Use main.application instead of main.py in your app.yaml. You need the former in order to set threadsafe to true.

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