: Why django is not accepting spaces in template? {% %} means that this is a django template delimiter. So inside {% %} the space should not matter I guess. Now in the example: <a href="{%
{% %} means that this is a django template delimiter. So inside {% %} the space should not matter I guess.
Now in the example:
<a href="{% url 'post_detail' pk=post.pk %}">{{ post.title }}</a>
This is showing expected output whereas
<a href="{% url 'post_detail' pk = post.pk %}">{{ post.title }}</a>
is showing error.
Why this is sensitive to whitespace?
More posts by @Welton855
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.