无法将Django项目上传到Google App Engine

时间:2023-01-24 17:59:06

I am trying to test the codes of the project.

我正在尝试测试项目的代码。

I run the following code

我运行以下代码

$appcfg.py update masicode/

I get the following error

我收到以下错误

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 ---

The contents of masicode

masicode的内容

$ls masicode/
app.yaml   index.yaml main.py

How can you upload Django project successfully to Google App Engine?

如何将Django项目成功上传到Google App Engine?

2 个解决方案

#1


Looks like login/permissions problem.

看起来像登录/权限问题。

HTTP Error 403: Forbidden
You do not have permission to modify this app (app_id=u'so').

HTTP错误403:禁止您无权修改此应用程序(app_id = u'so')。

Your appID should be same as the one you have registered in Google App Engine. Your mail and password same as credentials that you've used to register it.
Is http://so.appspot.com/ yours?

您的appID应与您在Google App Engine中注册的appID相同。您的邮件和密码与您用于注册的凭据相同。是http://so.appspot.com/你的吗?

Further reading on deploying Django on App Engine:

进一步阅读在App Engine上部署Django:

#2


Did you develop it specifically for App Engine using a modified Django library such as http://code.google.com/p/google-app-engine-django/? App Engine is a different environment than your standard Python install and apps that were not developed for it will not work (and possibly deploy) correctly.

您是否使用修改后的Django库(例如http://code.google.com/p/google-app-engine-django/)专门为App Engine开发了它? App Engine是一个与标准Python安装不同的环境,并且未针对它开发的应用程序将无法正常工作(并可能部署)。

Does the app run correctly in the App Engine development environment?

应用程序是否在App Engine开发环境中正确运行?

#1


Looks like login/permissions problem.

看起来像登录/权限问题。

HTTP Error 403: Forbidden
You do not have permission to modify this app (app_id=u'so').

HTTP错误403:禁止您无权修改此应用程序(app_id = u'so')。

Your appID should be same as the one you have registered in Google App Engine. Your mail and password same as credentials that you've used to register it.
Is http://so.appspot.com/ yours?

您的appID应与您在Google App Engine中注册的appID相同。您的邮件和密码与您用于注册的凭据相同。是http://so.appspot.com/你的吗?

Further reading on deploying Django on App Engine:

进一步阅读在App Engine上部署Django:

#2


Did you develop it specifically for App Engine using a modified Django library such as http://code.google.com/p/google-app-engine-django/? App Engine is a different environment than your standard Python install and apps that were not developed for it will not work (and possibly deploy) correctly.

您是否使用修改后的Django库(例如http://code.google.com/p/google-app-engine-django/)专门为App Engine开发了它? App Engine是一个与标准Python安装不同的环境,并且未针对它开发的应用程序将无法正常工作(并可能部署)。

Does the app run correctly in the App Engine development environment?

应用程序是否在App Engine开发环境中正确运行?