In my case was a cache problem. Below the solution worked for me:

 1. below replacing files clear the cache of browsers (IE9, OP12, FF13, 
CH19). Repeat the operation if needed.
 2. rename the default files (i.e.: __favicon.ico and __favicon.png
 3. put new files in static folder
 4. open the browser and go to app url

Anyway in layout.html there is this instruction (line 34 in last trunk):
  <!-- Place favicon.ico and apple-touch-icon.png in the root of your 
domain and delete these references -->
   <link rel="shortcut icon" href="{{=URL('static','favicon.ico')}}" 
type="image/x-icon">
   <link rel="apple-touch-icon" href="{{=URL('static','favicon.png')}}">

At last, if you modified the routes.py, check the routes_in section for:
  
  (r'.*:/favicon.ico', r'/init/static/favicon.ico')

where init is your app.


Il giorno lunedì 28 maggio 2012 11:56:07 UTC+2, Marian Siwiak ha scritto:
>
> Hello,
>
> I replaced favicon.ico and favicon.png file in "static" folder of my app, 
> but on my webpage I still get an old icon. Any suggestions? I thought it 
> might be some cache problems, but I used different browser, and still - 
> web2py app icon is there...
>
> best regards,
> Marian
>

Reply via email to