[Django]-Invalid block tag: 'endblock' django

9👍

You should add % here:

{% block jumbotron}

to became:

{% block jumbotron %}

Check template syntax used in Django for more info.

2👍

{% block jumbotron}

You need to correct the syntax. You forgot to put % in your block statement.

{% block jumbotron %}

0👍

In my case it was {% endblock %} problem, it should be {% block base_content %}{% endblock base_content %} or else it fails with error Invalid block tag: 'endblock' django

👤holms

0👍

I would use the template tags like below:

{% block jumbotron %}

    <div></div>

{% endblock jumbotron %}

Leave a comment