Closed ealvan closed 4 months ago
the error isn't the block, but it was the use of {% include block %}
instead of using {{block}}
#My error was using the include tag instead of just use the block:
<div class="body">
{% for block in page.body %}
{% if block.block_type == "code" %}
{{ block }}
{% else %}
{% include block %}
{% endif %}
{% endfor %}
</div>
With this code, it should work well
Details: python 3.10 wagtail 6.1 wagtailcodeblock 1.29.0.2
When I implement this codeblock with all configurations like this:
And I use in a streamblock:
Admin panel goes well:
But When I use my template:
The error says:
Is this a new error due to updating wagtail 6.1?