Discussion:
strange 404 on favicon.ico in the admin
andreas schmid
2010-02-15 12:37:45 UTC
Permalink
hi,

i cant understand why but when i access my projects admin interface i
continiously get a 404 error on the favicon. everything works fine but i
get a lot of error mails from django everytime i access the site on
production.

[15/Feb/2010 12:34:07] "GET /de/admin/ HTTP/1.1" 200 7758
[15/Feb/2010 12:34:07] "GET /de/favicon.ico HTTP/1.1" 302 0
[15/Feb/2010 12:34:07] "GET /de/favicon.ico/ HTTP/1.1" 404 1714

and why is it trying to get the favicon in the admin? if i look at the
pages source there is no favicon set in the header for the admin interface.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-***@googlegroups.com.
To unsubscribe from this group, send email to django-users+***@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Shawn Milochik
2010-02-15 14:15:37 UTC
Permalink
The browser looks for a favicon (the little image that appears in the address bar next to the URL). I got those errors on my WebFaction account until I created a favico.ico file and added its location to the Apache config.

A quick Google search will find various Web sites which will take an image and convert it into a valid .ico file.

Then, assuming you're using Apache, add this to httpd.conf:

<Location "/favicon.ico">
SetHandler None
</Location>

alias /favicon.ico /full/path/to/favicon.ico




Shawn
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-***@googlegroups.com.
To unsubscribe from this group, send email to django-users+***@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
andreas schmid
2010-02-15 14:37:55 UTC
Permalink
thx for that, i have a favicon for the frontend of my site and i really
dont understand why and where its searching for /favicon.ico it should
be /media/favicon.ico for the admin anyway.

i solved it by putting a django.views.generic.simple.redirect_to to
rewrite the url for the favicon.
Post by Shawn Milochik
The browser looks for a favicon (the little image that appears in the address bar next to the URL). I got those errors on my WebFaction account until I created a favico.ico file and added its location to the Apache config.
A quick Google search will find various Web sites which will take an image and convert it into a valid .ico file.
<Location "/favicon.ico">
SetHandler None
</Location>
alias /favicon.ico /full/path/to/favicon.ico
Shawn
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-***@googlegroups.com.
To unsubscribe from this group, send email to django-users+***@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Loading...