What could be the reason for this TemplateSyntaxErrorin Django?
Invalid block tag: 'endfor', expected 'endblock'
My template is pretty simple so far:
{% extends 'base.html' %}
{% block content %}
<div id='beerslist'>
{$ for beer in beers %}
{{ beer }}
{% endfor %}
</div>
{% endblock %}
After viewing the trace list, there is a beer variable and returns an array. How can I fix this syntax error?
source
share