Django Add Favicon in base.html

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' %}">

--

--

Software Engineer, Indonesia

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store