0👍
Hope this may help:
{% load static %}
<link rel="shortcut icon" href="{% static 'yourappname/images/favicon.png' type='image/ico' %}"/>
OR
You can store favicon as a png file too.
<link rel="shortcut icon" href="{% static 'yourappname/images/favicon.png' type='image/png' %}"/>
Additionally:
- Store your icon in yourappname/static/yourappname/images/favicon.ico path
- Make sure you have written <link rel… between the
<head>
tags in your template. - Don’t forget to use
{% load static %}
tag in your template.
You can find more details about ‘using favicon’ from this question.
- [Django]-Django rest Framework – Expected a list of items but got type "QuerySet"
- [Django]-How can I add field to request body in django middleware
- [Django]-How can get Post data form Category in Django?
0👍
You can try :
<link rel="shortcut icon" href="{% static 'players/images/liverpool.png' type='image/png' %}"/>
- [Django]-DRF serializer check undefined field
- [Django]-Django extends different base templates
- [Django]-Django-allauth with multiple profile models
Source:stackexchange.com