About Favicon for Django Admin

Create a template file admin/base_site.html with the following content to add a favicon to Django administration page:

{% extends "admin/base_site.html" %}

{% block extrahead %}
    {% include "misc/includes/favicon.html" %}
{% endblock %}

Then create a template file misc/includes/favicon.html with one or more favicon image versions:

{% load static %}
<link rel="shortcut icon" href="{% static 'site/img/favicon.ico' %}" />

You can use online favicon generators to create different versions of your logo as favicons for various platforms, such as desktop browsers, mobile devices, and apps.

Tips and Tricks Development Django 5.2 Django 4.2 Django 3.2