-1
This is my code snippet, and as you can see, I close the block at the end, but I keep getting the bug
{% extends "encyclopedia/layout.html" %}
{% block title %}
Edit page
{% endblock %}
{% block body %}
<form>
<label for="title">Title:</label>
<input type="text" class="form-control" id="title" placeholder="Title of the page">
<label for="textArea">Page content:</label>
<!--ERRO AQUI-->
<textarea class="form-control" id="textArea" rows="15">
{% print(f"teste") %}
</textarea>
<br>
<button type="button" class="btn btn-primary">Post!</button>
</form>
{% endblock %}
Error:
TemplateSyntaxError at /editPage
Invalid block tag on line 14: 'print(f"teste")', expected 'endblock'. Did you forget to register or load this tag?
TemplateSyntaxError at /editPage
Invalid block tag on line 14: 'print(f"teste")', expected 'endblock'. Did you forget to register or load this tag?
Thank you very much!
– ferrazGab