Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

favicon.ico "not found error" in 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

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

like image 578
vignesh Avatar asked May 20 '09 11:05

vignesh


People also ask

How do I fix favicon not found?

Wrong file path You need to ensure that your favicon's file path is correct. If you have your icon in the images folder, then make sure that your file path has /images/favicon. ico depending on what you named your icon.

What is favicon error in Django?

If you are still getting favicon errors and the Django favicon is not working, you need to make sure the favicon file is spelled correctly and saved in the right folder. The example above uses the path static > img, meaning the favicon is located in the project folder > static > img folder.


2 Answers

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.

like image 72
zgoda Avatar answered Sep 23 '22 23:09

zgoda


If you are doing this in Java, I got rid of the error by putting a blank "favicon.ico" file in the "war" directory.

If you want to make your own quick and ugly "favicon.ico" file, this website was super easy to use: http://www.favicon.cc/

like image 22
Chris Dutrow Avatar answered Sep 24 '22 23:09

Chris Dutrow