Skip to content

Instantly share code, notes, and snippets.

@AndyLPK247
Last active December 15, 2017 03:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndyLPK247/12cc8cf5da2ca4331f3bd7b8f9218999 to your computer and use it in GitHub Desktop.
Save AndyLPK247/12cc8cf5da2ca4331f3bd7b8f9218999 to your computer and use it in GitHub Desktop.
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">
<head>
<meta charset="UTF-8">
<title>My Page</title>
<link rel="shortcut icon" href="{% static 'images/favicon.ico' %}" />
</head>
<body>
...
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment