1

What is the difference between { % extends parent _ template|default:"base.html" % } vs {% extends "base.html" %} in template inheritance in django ? I've seen both being used.

1 Answers1

1

{ % extends parent_template|default:"base.html" % } if have parent_template, it will extend it. If not , it will extend base.html

{% extends "base.html" %}always extend base.html.

Its different

Ngoc Pham
  • 1,408
  • 9
  • 18