Google App Engine与Eclipse? [英] Google App Engine with Eclipse?
问题描述
我下载了PyDev,并制作了一个Hello World Python应用程序,这样工作正常。
然后我创建了一个新项目,并带有Google App Engine模板。我遵循这些说明。我使用Hello Webapp World作为模板,并没有更改任何Python代码。我将GAE目录添加到了我的外部库中。
然后,我为我的项目做了一个运行配置,将Main Module作为HelloWorld.py文件已创建。我有一个计划参数:$ {project_loc} / src
执行此操作将返回以下内容:
状态:404未找到
Content-Type:text / html; charset = utf-8
Cache-Control:no-cache
过期时间:星期五,1990年1月1日00:00:00 GMT
Content-Length:0
但是,如果我使用Google App Engine启动器启动这个相同的应用程序,它可以正常工作。那么我在Eclipse中做了什么错误?
解决方案我自己也处理过这个相同的问题。
主模块需要设置为:
$ {GOOGLE_APP_ENGINE} /dev_appserver.py
它覆盖了说明,第3步开始您的第一个项目。我也是第一次亲眼看到它。希望这有助于!
I'm trying to use Google App Engine with Eclipse but it's not working.
I downloaded PyDev, and made a Hello World Python app, so that's working fine.
Then I created a new project, with the "Google App Engine" template. I was following these instructions. I used the "Hello Webapp World" as a template, and didn't change any of the Python code. I added the GAE directory to my external libraries.
I then made a run configuration for my project, with the "Main Module" as the "HelloWorld.py" file I had created. I had one "Program Argument":
"${project_loc}/src"
Running this returns the following:
Status: 404 Not Found Content-Type: text/html; charset=utf-8 Cache-Control: no-cache Expires: Fri, 01 Jan 1990 00:00:00 GMT Content-Length: 0
However, if I launch this same app using the Google App Engine Launcher, it works fine. So what am I doing wrong in Eclipse?
解决方案I've dealt with this same problem myself.
The Main Module needs to be set to the following:
${GOOGLE_APP_ENGINE}/dev_appserver.py
It does cover it in the instructions, step 3 under Starting Your First Project. I must have glazed over it myself the first time as well. Hope this helps!
这篇关于Google App Engine与Eclipse?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!