Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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