【发布时间】:2015-11-13 11:22:19
【问题描述】:
我正在尝试按照他们的 Python 教程在 Google 引擎上部署一个基本的 HelloWorld 应用。我创建了一个 helloworld.py 文件和一个 app.yaml 文件,并从他们的在线教程中复制了代码。我注册了 Google App Engine 并尝试了所有方法,但不断收到以下错误:
2015-08-19 19:22:08,006 ERROR appcfg.py:2438 An error occurred processing file '':
HTTP Error 403: Forbidden Unexpected HTTP status 403. Aborting.
Error 403: --- begin server output ---
You do not have permission to modify this app (app_id=u'helloworld').
--- end server output ---
If deploy fails you might need to 'rollback' manually.
The "Make Symlinks..." menu option can help with command-line work.
*** appcfg.py has finished with exit code 1 ***
这是来自 helloworld.py 的代码:
import webapp2
class MainPage(webapp2.RequestHandler):
def get(self):
self.response.headers['Content-Type'] = 'text/plain'
self.response.write('Hello, Udacity!')
app = webapp2.WSGIApplication([
('/', MainPage),
], debug=True)
这是我在 app.yaml 文件中的代码:
application: helloworld
version: 1
runtime: python27
api_version: 1
threadsafe: true
handlers:
- url: /.*
script: helloworld.app
是否存在权限问题,即 Google 应用或我的笔记本电脑的设置?我已经尝试了 stackoverflow 上的所有内容,因此任何新的建议都将不胜感激!
【问题讨论】:
标签: python google-app-engine web-applications