Skip to content

Instantly share code, notes, and snippets.

@AndyLPK247
Created February 9, 2018 19:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndyLPK247/a24c879a8ba0110b3689ad8b6d6b7637 to your computer and use it in GitHub Desktop.
Save AndyLPK247/a24c879a8ba0110b3689ad8b6d6b7637 to your computer and use it in GitHub Desktop.
Django rest_framework/api.html template override for Django REST Framework browsable API favicon
<!-- The path and name for this file should be "templates/rest_framework/api.html". -->
<!-- It overrides the original browsable API template and will be picked up by all of its children. -->
<!-- This template override has been verified for Django 2.0. -->
{% extends "rest_framework/base.html" %}
{% load static %}
{% block style %}
{{ block.super }}
<link rel="shortcut icon" href="{% static 'images/favicon.ico' %}" />
{% endblock %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment