I have a list in my Django template. I want to do something only if the size of the list is greater than zero.
I have tried myList|length and m
myList|length
m
If you tried myList|length and myList|length_is and its not getting desired results, then you should use myList.count
myList.count