favicon.ico "not found error" in App Engine

vignesh picture vignesh · May 20, 2009 · Viewed 26.5k times · Source

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

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...

Answer

zgoda picture zgoda · May 21, 2009

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.