【发布时间】:2016-06-13 10:57:22
【问题描述】:
这是我的 app.yml 文件
application: hello
version: 1
runtime: python27
api_version: 1
threadsafe: false
handlers:
- url: /.*
script: hello.py
hello.py 与 app.yml 文件位于同一目录。
当我运行应用程序时出现此错误:
google.appengine.api.yaml_errors.EventError: Unknown url handler type.
<URLMap
secure=default
static_files=None
application_readable=None
auth_fail_action=redirect
require_matching_file=None
static_dir=None
redirect_http_response_code=None
http_headers=None
url=/.*
script=None
upload=None
api_endpoint=None
expiration=None
position=None
login=optional
mime_type=None
>
in "C:\Users\***\Desktop\app\app.yaml", line 8, column 1
2016-03-01 11:36:12 (Process exited with code 1)
我认为是空格问题,所以我在脚本后添加了两个空格,但我仍然遇到同样的错误。
【问题讨论】:
-
我怀疑投诉是关于
hello.py的.py后缀,你不是说hello.app而是(这需要包含应用程序代码的相应hello.py文件)?
标签: python google-app-engine flask yaml