'Adding icon to title in Django project fails
I have added this tag to my head tag in html I can see the image when I have inspected the code but I can't get the icon displayed.
<link rel = "shortcut icon" type = "image" href = "{% static 'images/logo.png' %}">
I even tried
<link rel = "shortcut icon" type = "image/png" href = "{% static 'images/logo.png' %}">
and
<link rel = "shortcut icon" type = "image/x-icon" href = "{% static 'images/logo.png' %}">
but It's of no use
I have referred this link add logo meta to html my code goes as this
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel = "shortcut icon" type = "image" href = "{% static 'images/logo.png' %}">
</head>
Solution 1:[1]
Everything is fine. You just need to clear cache/cookies for your localhost.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Arifcse21 |
