Forums

HELP - jinja2.exceptions.TemplateSyntaxError: unexpected '<'

Cant render the damn HTML template, i am a total noob, and i hate this, please help.

There is no syntax error in my HTML code, I dont know what JINJA is, but its saying i have some syntax error.

File "/home/SamuelMeir/mysite/templates/template.html", line 14621, in template <span class="o"><</span><span class="n">strong</span> <span class="n">class</span><span class="o">=</span><span class="s2">"center error-message"</span><span class="o">></span><span class="p">{{</span> <span class="n">message</span> <span class="o">|</span> <span class="n">safe</span> <span class="p">}}</span><span class="o"></</span><span class="n">strong</span><span class="o">></span> jinja2.exceptions.TemplateSyntaxError: unexpected '<'

It looks like you have a tag opening angle bracket that is not closed / not needed. First chars from the output look suspicious to me, for example: <span class="o"><</span> (but I see more doubled brackets there).