Python 2.7-使用google app engine SDK和Pydev在eclipse中无法识别线程安全和url关键字
我将Eclipse与Pydev和googleAppengine一起使用。我已经安装了python 2.7。我正在尝试运行关于hello world的最简单的第一个程序,该程序可在以下位置获得: 问题是我的app.yaml无法识别线程安全的和url关键字。它给出的错误信息是拼写不正确 请让我知道我做错了什么。。非常感谢您在这方面的任何帮助 我的代码: App.yaml:Python 2.7-使用google app engine SDK和Pydev在eclipse中无法识别线程安全和url关键字,python,google-app-engine,Python,Google App Engine,我将Eclipse与Pydev和googleAppengine一起使用。我已经安装了python 2.7。我正在尝试运行关于hello world的最简单的第一个程序,该程序可在以下位置获得: 问题是我的app.yaml无法识别线程安全的和url关键字。它给出的错误信息是拼写不正确 请让我知道我做错了什么。。非常感谢您在这方面的任何帮助 我的代码: App.yaml: application: helloworld version: 1 runtime: python27 api_version
application: helloworld
version: 1
runtime: python27
api_version: 1
threadsafe: true
handlers:
- url: /.*
script: helloworld.app
及
helloworld.py:
import webapp2
class MainPage(webapp2.RequestHandler):
def get(self):
self.response.headers['Content-Type'] = 'text/plain'
self.response.out.write('Hello, webapp World!')
app = webapp2.WSGIApplication([('/', MainPage)],
debug=True)
Python 2.7还没有通过Eclipse的Google插件得到支持。你为什么关心Eclipse的想法?当然,唯一重要的是代码是否有效?您有最新版本的SDK吗?实际的错误消息是什么?您正在做什么来生成它?它正在工作。谢谢Daniel-你说得对,我不应该担心eclipse。是的,但是eclipse插件还没有赶上它。