I am using Django and I want to remove spaces after or before this block.
I found no spaces in django
But only the space between the tags is deleted, not the space between the tags and the text.
Use jinja
{% for item in seq -%}
{{ item }}
{%- endfor %}
it removes spaces after or before this block.
How to use this function in Django?
source
share