Favicon Django
<link rel="shortcut icon" type="image/png" href="{% static 'favicon.ico' %}"/>
Dizzy Deer
<link rel="shortcut icon" type="image/png" href="{% static 'favicon.ico' %}"/>
env > mysite > main > urls.pyfrom django.urls import pathfrom . import viewsfrom django.contrib.staticfiles.storage import staticfiles_storagefrom django.views.generic.base import RedirectViewurlpatterns = [ path('favicon.ico', RedirectView.as_view(url=staticfiles_storage.url('img/favicon.ico')))]