favicon.ico “not found error” in App Engine

前端 未结 4 1210
一向
一向 2020-12-13 17:10

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

4条回答
  •  清歌不尽
    2020-12-13 17:44

    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.

提交回复
热议问题