Skip to content

Instantly share code, notes, and snippets.

@AndyLPK247
Created December 15, 2017 04:37
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/b6b1bef9bd88319689d1ac18cf25d4b7 to your computer and use it in GitHub Desktop.
Save AndyLPK247/b6b1bef9bd88319689d1ac18cf25d4b7 to your computer and use it in GitHub Desktop.
Django child template example that inherits the favicon
<!-- This is an example of a Django child template. -->
<!-- It extends: https://gist.github.com/d7f20ccd5620f64d761ec546fd9eb37a -->
<!-- The parent template sets the favicon. -->
{% extends "django_example_parent.html" %}
{% block title %}My Page{% endblock %}
{% block content %}
<div>
...
</div>
{% endblock %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment