1Your {% elif %} in {% if my video...%} doesn't have any condition.
2
3I think you should have {% else %} instead?
4
5{% if my_video %}//if that url is an link to video
6 <img src="{{ my_video.thumbnail }}" class="img-rounded" alt="" height="75" width="75"/>
7{% else %} //if that url isn't a video
8 <img src="{{post.image}}" class="img-rounded" alt=" EBAGU" height="75" width="75"/>
9{% endif %}