【发布时间】:2015-03-15 01:40:00
【问题描述】:
我是 Google App Engine 的新手,我学习了多个视频教程(一个来自 Udacity),但由于某种原因,我无法通过简单的“Hello World”程序让它在本地主机上运行。
我确实安装了 Python SDK 以及 Google App Engine 程序。我确实修改了 YAML 文件,使其与我的应用程序匹配(默认情况下)。当我在 Google App Engine 启动器中单击“运行”时,它会在我尝试运行的程序旁边显示一个黄色三角形警告标志。
当我在搜索栏中输入localhost:8080 时,它会显示:
此网页不可用
我还尝试重新安装 Python 2.7.9 和 Google App Engine,但无济于事。简而言之,我想了解为什么当我尝试运行该程序时没有显示任何内容。以下是日志文件(如果有帮助):
2015-03-14 18:36:21 Running command: "['E:\\Python\\pythonw.exe', 'C:\\Program Files (x86)\\Google\\google_appengine\\dev_appserver.py', '--skip_sdk_update_check=yes', '--port=8080', '--admin_port=8000', 'C:\\Program Files (x86)\\Google\\google_appengine\\new_project_template']"
Traceback (most recent call last):
File "C:\Program Files (x86)\Google\google_appengine\dev_appserver.py", line 83, in <module>
_run_file(__file__, globals())
File "C:\Program Files (x86)\Google\google_appengine\dev_appserver.py", line 79, in _run_file
execfile(_PATHS.script_file(script_name), globals_)
NameError: name 'execfile' is not defined
2015-03-14 18:36:21 (Process exited with code 1)
【问题讨论】:
标签: python google-chrome google-app-engine web-applications