Web2py Favicon

The favicon for my web2py app works on my local machine, where I place favicon.ico in the root of my appname folder.

So the directory is like: web2py/applications/appname/favicon.ico

and that works fine. However, this does not work for the same app in pythonanywhere. Is my web2py/applications/appname folder not considered the root folder for my site?

Simple question but I haven't been able to find any references for favicons in Pythonanywhere.

Hi marladarla,

Nope, that's not a public web root. You should put something like:

<link rel="shortcut icon"
type="image/ico" />

In the header of your html. And the path to the favicon should be a static files directory.

thanks hansel!