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

前端 未结 2 1641
时光说笑
时光说笑 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.

提交回复
热议问题