favicon.ico“未找到错误"在应用引擎中 [英] favicon.ico "not found error" in App Engine

查看:34
本文介绍了favicon.ico“未找到错误"在应用引擎中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 Google App Engine 上进行开发,在管理控制台中显示的错误列表中,我总是看到以下内容:

I am trying to develop on Google App Engine and in the list of the errors displayed in the admin console I always see the following:

/favicon.ico

/favicon.ico

我阅读了文档,添加了一个名为 static 的新文件夹并将其添加到我的 app.yaml 中:

i read the documentation , added a new folder called static and added this in my app.yaml:

- url: /favicon.ico
       static_files: static/favicon.ico
       upload: static/favicon.ico

但即使现在我也遇到同样的错误...

but even now I'm getting the same error...

推荐答案

这个条目应该放在之前主处理程序的条目,例如:

This entry should be placed before the entry for the main handler, like:

- url: /favicon.ico
  static_files: media/img/favicon.ico
  upload: media/img/favicon.ico

- url: /robots.txt
  static_files: media/robots.txt
  upload: media/robots.txt

- url: .*
  script: main.py

条目按外观顺序处理,第一个匹配获胜.

The entries are processed in order of apperance and first one that matches wins.

这篇关于favicon.ico“未找到错误"在应用引擎中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆