Django Add Favicon in base.html

Adi Ramadhan
1 min readAug 15, 2020

Add favicon from static folder to base.html in django

default and customized favicon

Preparation:
Step 1: Setup static folder.

Step 2: Setup base.html

Step 3. Add file icon *.ico in static/images
Example icon filename: book.ico

Step 4. Modify base.html (we use cdn bootstrap template)

<link rel="shortcut icon" href="{% static 'images/book.ico' %}">

--

--