我正在尝试测试project的代码。
我运行以下代码
$appcfg.py update masicode/
我收到以下错误
Scanning files on local disk.
Initiating update.
2009-04-06 21:58:42,401 ERROR appcfg.py:1235 An unexpected error occurred. Aborting.
Traceback (most recent call last):
File "/Applications/Coding/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appcfg.py", line 1213, in DoUpload
missing_files = self.Begin()
File "/Applications/Coding/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appcfg.py", line 1009, in Begin
version=self.version, payload=self.config.ToYAML())
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appengine_rpc.py", line 303, in Send
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py", line 380, in open
response = meth(req, response)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py", line 491, in http_response
'http', request, response, code, msg, hdrs)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py", line 418, in error
return self._call_chain(*args)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py", line 353, in _call_chain
result = func(*args)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py", line 499, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 403: Forbidden
Error 403: --- begin server output ---
You do not have permission to modify this app (app_id=u'so').
--- end server output ---
masicode的内容
$ls masicode/
app.yaml index.yaml main.py
如何将Django项目成功上传到Google App Engine?
答案 0 :(得分:2)
看起来像登录/权限问题。
HTTP错误403:禁止
您无权修改此应用(app_id = u'so')。
您的appID应与您在Google App Engine中注册的appID相同。您的邮件和密码与您用于注册的凭据相同。
http://so.appspot.com/是你的吗?
进一步阅读在App Engine上部署Django:
答案 1 :(得分:1)
您是否使用修改后的Django库(例如http://code.google.com/p/google-app-engine-django/)专门为App Engine开发了它? App Engine是一个与标准Python安装不同的环境,并且未针对它开发的应用程序将无法正常工作(并可能部署)。
应用程序是否在App Engine开发环境中正确运行?