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

By default bundled with:

PyCharm 2024.1,

Can be installed with plugin:

Django, 241.SNAPSHOT

Last modified: 29 April 2024