{% for comment in obj.comments.select_related.live %}
{% include 'comments/comment.inc.html' %}
{% if not forloop.last %}{% endif %}
{% endfor %}
{% if comment_form %}
Post a comment
{% endif %}
{% else %}
{% if comment_form %}
Post a comment
{% endif %}
{% endif %}
{% if comment_form %}
{% include 'comments/form.inc.html' with obj=obj %}
{% endif %}