0PricingLogin
Django Academy · Lesson

Template Inheritance with extends and block

Build a base layout and override sections.

Stop Repeating Layout

Every page shares a header, nav, and footer. Template inheritance lets you write that shell once and reuse it everywhere. 🧱

Start with a Base

A base template holds the common HTML skeleton. Child pages will plug their unique content into spots you leave open.

base.html

All lessons in this course

  1. render() and the Template Context
  2. Template Tags and Filters
  3. Template Inheritance with extends and block
  4. The url Tag and static Tag
← Back to Django Academy