gpt-3.5-turbo-0301· OpenAI
WildChat-4.8M (AI2)
Untitled conversation
- User
{% extends 'base.html' %}
{%block content%}
code<a href="#" class="'btn btn-outline-primary mb-3">GO HOME</a> <h4 class="card pt-2 text center mb-3">ADD CANDIDATE </h4> <table class="table table-bordered text-center"> <thead class="table secondary"> <tr> <th>Name</th> <th>Email</th> <th>address</th> <th>career</th> <th>gender</th> </tr> </thead> <tbody> {%for data in data_read%} <tr> <td>{{data.name}}</td> <td>{{data.email}}</td> <td>{{data.address}}</td> <td>{{data.career}}</td> <td>{{data.gender}}</td> </tr> {%endfor%} </tbody> </table> </div>{%endblock}
Unclosed tag on line 5: 'block'. Looking for one of: endblock. err
- Assistant
This error is indicating that there is an unclosed block tag in the template. Specifically, it says that the "block" tag on line 5 is not closed properly with an "endblock" tag.
To fix this error, simply add an "endblock" tag at the end of your template, after the closing div tag. For example:
{% extends 'base.html' %}
{% block content %}