-2

I am trying to fix this error:

favicon.ico:1          GET http://127.0.0.1:8000/static/favicon.ico 404 (Not Found)

The error came after I added a fetch to a JavaScript function.

I have tried adding <link rel="shortcut icon" type="image/png" href="{% static 'favicon.ico' %}"/> and <link rel="shortcut icon" href="#">, but neither change anything, and for some reason the error only will occur in the console when I press Ctrl F5. Does anyone know how to fix this?

Phil
  • 157,677
  • 23
  • 242
  • 245
econo
  • 49
  • 7

1 Answers1

0

Its just simply not there, if the file "favicon.ico" does not exist in the current directory, it will show that error, it just saying that there was an error whilst trying to get the icon, so in your case http://127.0.0.1:8000/static/favicon.ico does not exist, adding a link will not fix that issue.

Bomber87t
  • 39
  • 9