Inspectopedia Help

Misplaced {% extends %} tag

Reports the {% extends %} tag that is not the first tag in a Django template.

Example:

{% load my_custom_tags %} {% extends "../DjangoApp/templatetags/my_custom_tags.py"%}

In this example, the {% extends %} tag is highlighted, because it should be placed before the {% load %} tag.

Inspection Details

Available in:

PyCharm 2023.3

Plugin:

Python, 233.SNAPSHOT

Last modified: 13 July 2023