On my local server, I’m getting the following error in terminal
[03/Oct/2011 22:49:19] "GET /favicon.ico/ HTTP/1.1" 500 65893
In my site_base.html, I already have the following line:
<link rel="icon" href="{{ STATIC_URL }}images/favicon.ico" />
What’s causing this error and how can I make it stop?
The default lookup browsers do is
/favicon.ico. However, since you specified the link the browser shouldn’t be doing this. There’s most likely a bug in the particular browser and version you’re using responsible for sending the extra request, but that’s beside the point.You’re getting a 500 error because that particular request is making it into the Django URL handling machinery, and whatever view is responding to, is choking on the provided arguments.
Check your urls.py and see which pattern(s) will accept the URL
/favicon.ico/. Then, go into the corresponding views and see why it’s causing it to choke, or alter the pattern such that it won’t catch a URL like this, as it mostly likely shouldn’t be in the first place.