views:

7

answers:

1

I am using {% extends "base.html" %}

I get the following error

must be the first tag in the template.

Can any one please help

A: 

It must be the very first django template tag in your template.

Documentation says:

If you use {% extends %} in a template, it must be the first template tag in that template. Template inheritance won't work, otherwise.

Documentation can be found here

Eric Fortin

related questions