[Answer]-Django if statement not working

1👍

Do not depend on the page output to tell you what is correct, since the output is dependent on the code. Instead, do it correctly in the first place.

    {% if item.category == category %}

Leave a comment