Reputation: 45
I was having this issue just in my production environment. I have an icon that is in my static files. I can load it through https://mydomain/static/img/favico.ico, but at the same time I get a 500 error for the following url https://mydomain/favico.ico . <- this url does not exist in my project.
I can't replicate in my local environment. I already did collectstatic.
Upvotes: 0
Views: 157
Reputation: 767
The default favicon URL is /favicon.ico
.
You should change it in your template to what you need:
<link rel="shortcut icon" type="image/png" href="{% static 'img/favico.png' %}"/>
make change in href
and type
according to your favicon file.
Upvotes: 3