我正在使用Eclipse与Pydev和googleAppengine。我安装了python 2.7。我正在尝试运行关于hello world的最简单的第一个程序,可以在这里找到:http://code.google.com/appengine/docs/python/gettingstartedpython27/helloworld.html
问题是我的app.yaml无法识别 线程安全 和 url 关键字。它给出的错误信息是拼写错误。
请让我知道我做错了什么..对此的任何帮助都非常感谢。
我的代码: app.yaml中:
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)
答案 0 :(得分:0)
Google插件尚不支持Python 2.7。