Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Django HTML template with a basic favicon in the header
<!DOCTYPE html>
<!-- The link tag within the head section adds the favicon to the page. -->
<!-- Presume that the favicon is a static file accessible at the images/favicon path. -->
<!-- Remember to "load static", too! -->
{% load static %}
<html lang="en">
<meta charset="UTF-8">
<title>My Page</title>
<link rel="shortcut icon" href="{% static 'images/favicon.ico' %}" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment