{% load comments %}
{% if user.is_authenticated %}
{% comment_form for photos.photo photo.id with is_public yes %}
comment form:
{% include "comments/form.html" %}
{% else %}
{% free_comment_form for photos.photo photo.id with is_public yes %}
free comment form:
{% include "comments/freeform.html" %}
{% endif %}
comment list:
{% get_comment_list for photos.photo photo.id as comments %}
{% get_free_comment_list for photos.photo photo.id as free_comments %}
{% include "comment_list" %}
{% endblock %}