{% for photo in gallery.photo_set.all %}
Created {{ gallery.created|date:"m/d/y @ h:iA T" }} by {{ gallery.owner }}
Categories: {% for x in gallery.category.all %}{{ x }} {% endfor %}
Tags: {% for tag in gallery.get_tags %} {{ tag }} {% endfor %}
{% if gallery.enable_comments %}
{% load get_setting %} {% get_setting "DJANGO_COMMENTS" "django_comments" %} {% if django_comments %} {% load comments %} {% get_comment_list for gallery as post_comments %} {% for comment in post_comments %} {{ comment }} {% endfor %} {% render_comment_form for posts %} {% else %} {% load disqus_tags %} {% disqus_show_comments %} {% endif %} {% endif %}