seul zarraga
seul zarraga

Reputation: 45

error with an url that does not exist in my project in django

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

Answers (1)

M.A. Heshmat Khah
M.A. Heshmat Khah

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

Related Questions