I've done favicons as per Malcolm's suggestion, with a link in my base template to e.g. /media/images/favicon.ico, and that works satisfactorily for most cases. The favicon shows as expected in browser address bars, etc.
However, since favicons arose via convention, where the convention was to place them in the root of the server, some old and/or stupid UAs still request them at /, rather than following the link. Which means I've received 404 emails. I haven't bothered to try fixing it yet, but I wonder if a redirect from /favicon.ico to /media/images/favicon.ico might solve that issue. If I get a chance I'll test it today, see if works. Has anyone else experimented with this? ---Peter On 12/16/08, Malcolm Tredinnick <malc...@pointy-stick.com> wrote: > > > On Tue, 2008-12-16 at 02:45 -0800, architecture wrote: >> i was working with php and always i put the favicon.ico in the root of >> the website but now the problem with django occurs >> now i'm working with django and i have a problem now >> i used >> 1. static.serve >> 2. .htaccess >> 3.redirect_to >> >> but none of them works have you any idea for using favicon.ico in the >> website > > There's nothing Django or PHP-specific about setting this up. However, > if you've configured your Django installation to control everything > under "/", then you'll need to make sure it also responds to request for > favico. > > An even easier solution is simply to put the favicon file wherever you > serve other static data from (e.g. where your stylesheets and images > are) and put a <link rel="icon"...> line in your base template to point > clients to the right location. > > Regards, > Malcolm > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---