Beginner here... sorry if it is a dumb question.
I have bits of code stored in a class property in models of django. When I try to call and render it in a HTML template, it works but it also renders additional tags at the beginning and end of the code:
{% pygmentify %}
<pre class="python">
{{article.code_example | safe }}
</pre>
{% endpygmentify %}
will output:
<p>print('hello world')</p>
How can I avoid this behaviour?
Thanks,
R