favicon.ico“未找到错误”在应用程序引擎 [英] favicon.ico "not found error" in app engine
本文介绍了favicon.ico“未找到错误”在应用程序引擎的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试着在应用程序引擎上开发,并在管理控制台中显示的错误列表中,我总是看到
/favicon.ico
我阅读了文档,添加了一个名为static的新文件夹,并将其添加到我的app.yaml中。
- url:/favicon.ico
static_files:static / favicon.ico
upload:static / favicon.ico
但即使现在ia得到相同的错误...
解决方案
在主处理程序的条目之前放置,例如:
- url:/favicon.ico
static_files:media / img / favicon.ico
上传:media / img / favicon.ico
- url:/robots.txt
static_files:media / robots .txt
上传:media / robots.txt
- url:。*
script:main.py
这些条目按外观顺序处理,第一个匹配 wins 。
I am tryin to develop on app engine and in the list of the errors displayed in the admin console I always see
/favicon.ico
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 a 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屋!
查看全文