niket gaurav
niket gaurav

Reputation: 33

jinja2.exceptions.TemplateSyntaxError: expected token 'end of statement block', got 'text'

{{% extends "base.html %}

{% block content %}
<h1 style="text-align: center">Owner Index</h1>


<fieldset align="centre">
    <body>
    {% for value in p %}
    {{ value.id }}<br>
    {{ value.start_location }}<br>
    {{ value.start_time }}<br>
    {{ value.drop_location }}<br>
    {{ value.car_model }}<br>
    {{ value.car_number}}<br>
    {% endfor %}
    </body>
</fieldset>
{% endblock %}

I am trying to print the values sent in p from python but always getting this error.

Upvotes: 0

Views: 6299

Answers (1)

Manager.s 1380
Manager.s 1380

Reputation: 11

Replace this line

{{ extends "base.html %}

with this line

{% extends "base.html" %}

Upvotes: 1

Related Questions