保留 url 未被保留
Reserved url is not being reserved
当我 运行 我的应用程序时,通过 dev_appserver (本地)或 appcfy (实时)它告诉我
WARNING 2016-04-04 10:22:23,538 appinfo.py:1113]
The URL path "/form" is reserved and will not be matched.
app.yaml:
application: my-app
version: 1
runtime: python27
api_version: 1
threadsafe: yes
handlers:
- url: /favicon\.ico
static_files: favicon.ico
upload: favicon\.ico
- url: /images
static_dir: images
- url: /bower_components
static_dir: bower_components
- url: /src/js
static_dir: src/js
- url: /src/css
static_dir: src/css
- url: /form
script: main.application
login: admin
- url: .*
script: main.application
libraries:
- name: webapp2
version: latest
- name: jinja2
version: latest
builtins:
- remote_api: on
- deferred: on
因此该警告似乎是有效的。但是,导航到 http://my-app.appspot.com/form
工作正常。
它说 “URL 路径“/form”已保留,不会匹配。” 和一个 google 群组对话 here and even a SO question why is GAE not detecting my form page? 让你相信 url 路径甚至不会到达你的应用路由器,而是显示 404。
但事实并非如此。我确信单独的 /form
正在匹配,因为它是我启用了管理员登录的唯一路由,并且按预期工作。
issue referred to in that conversation mentions an update to the documentation (d.d. december 2014) to better reflect this situation. The documentation 只说了这个:
Reserved URLs
All URLs that begin with /_ah/
are reserved by App Engine for features or administrative purposes. Some URLs are routed to App Engine feature handlers, while others are called by App Engine for special purposes and are expected to be mapped to request handlers in your app (for example, /_ah/warmup
for Warm-up Requests).
任何地方都没有提到 /form
。
我不想将 url 更改为其他内容,只是为了避免可能已过时的警告,但我不确定它是否已过时,或者是否正在发生其他事情。
任何人都可以阐明这一点吗?
1.9.33 的 release notes 说:
February 17, 2016 - Version 1.9.33
App Engine notes
The URL path "/form" is now allowed and will be forwarded to
applications. Previously, this path was blocked.
看来警告已经过时了。
当我 运行 我的应用程序时,通过 dev_appserver (本地)或 appcfy (实时)它告诉我
WARNING 2016-04-04 10:22:23,538 appinfo.py:1113]
The URL path "/form" is reserved and will not be matched.
app.yaml:
application: my-app
version: 1
runtime: python27
api_version: 1
threadsafe: yes
handlers:
- url: /favicon\.ico
static_files: favicon.ico
upload: favicon\.ico
- url: /images
static_dir: images
- url: /bower_components
static_dir: bower_components
- url: /src/js
static_dir: src/js
- url: /src/css
static_dir: src/css
- url: /form
script: main.application
login: admin
- url: .*
script: main.application
libraries:
- name: webapp2
version: latest
- name: jinja2
version: latest
builtins:
- remote_api: on
- deferred: on
因此该警告似乎是有效的。但是,导航到 http://my-app.appspot.com/form
工作正常。
它说 “URL 路径“/form”已保留,不会匹配。” 和一个 google 群组对话 here and even a SO question why is GAE not detecting my form page? 让你相信 url 路径甚至不会到达你的应用路由器,而是显示 404。
但事实并非如此。我确信单独的 /form
正在匹配,因为它是我启用了管理员登录的唯一路由,并且按预期工作。
issue referred to in that conversation mentions an update to the documentation (d.d. december 2014) to better reflect this situation. The documentation 只说了这个:
Reserved URLs
All URLs that begin with
/_ah/
are reserved by App Engine for features or administrative purposes. Some URLs are routed to App Engine feature handlers, while others are called by App Engine for special purposes and are expected to be mapped to request handlers in your app (for example,/_ah/warmup
for Warm-up Requests).
任何地方都没有提到 /form
。
我不想将 url 更改为其他内容,只是为了避免可能已过时的警告,但我不确定它是否已过时,或者是否正在发生其他事情。
任何人都可以阐明这一点吗?
1.9.33 的 release notes 说:
February 17, 2016 - Version 1.9.33
App Engine notes
The URL path "/form" is now allowed and will be forwarded to applications. Previously, this path was blocked.
看来警告已经过时了。