我一直在嘗試將代碼部署到GAE上,但嘗試時仍收到500服務器錯誤。用於Google App Engine的Python代碼的服務器錯誤
使用Pycharm環境我在代碼中看不到錯誤。有人可以幫我解決導致問題的原因嗎?我也嘗試使用郵遞員插件來獲取GET和POST響應,但由於500內部服務器錯誤而無法這樣做。 感謝您的時間和幫助。
AppEngine日誌中的錯誤。
Traceback (most recent call last):
File "/python27_runtime/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 196, in Handle
handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
File "/python27_runtime/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 269, in _LoadHandler
raise ImportError('%s has no attribute %s' % (handler, name))
ImportError: <module 'main' from '/base/data/home/apps/s~newstartapptest/1.367182586650515795/main.py'> has no attribute app
錯誤日誌說什麼? – geoffspear 2013-05-06 17:07:54
您可以嘗試幫助(self.request)獲取更多信息 – 2013-05-06 17:18:10
回溯(最近通話最後): 文件「/python27_runtime/python27_lib/versions/1/google/appengine/runtime/wsgi.py」,第196行, in Handle handler = _config_handle.add_wsgi_middleware(self._LoadHandler()) 文件「/python27_runtime/python27_lib/versions/1/google/appengine/runtime/wsgi.py」,行255,位於_LoadHandler handler = __import __(path [ 0]) 文件 「/base/data/home/apps/s~newstartapptest/1.367182297362347420/main.py」,3號線,在 從google.appengine.ext進口webapp2的 導入錯誤:無法導入名稱webapp2的 –
user2346476
2013-05-06 17:19:49