# Problem listing with contrib.comments

**URL:** <https://forum.kirupa.com/t/problem-listing-with-contrib-comments/263580>\
**Category:** programming\
**Created:** [June 17, 2008, 12:57pm UTC](https://forum.kirupa.com/t/problem-listing-with-contrib-comments/263580 "2008-06-17T12:57:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JoshuaJonah](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/joshuajonah/32/1775_2.png) [@JoshuaJonah](https://forum.kirupa.com/u/JoshuaJonah)\
**Post date:** [June 17, 2008, 12:57pm UTC](https://forum.kirupa.com/t/problem-listing-with-contrib-comments/263580/1 "2008-06-17T12:57:34Z")

</div>

I have a page: [http://www.joshuajonah.com/blog2/2008/jun/09/my-first-blog-post/](http://www.joshuajonah.com/blog2/2008/jun/09/my-first-blog-post/)

It has a comment\_count and a comment\_list, they are being called exactly the same way, however, comment\_list has no items.

post\_detail.html (template):

```auto
{% extends "blog/index.html" %}
{% load extra %}
{% load comments %}
{% block title %}{{ object.title|escape }}{% endblock %}
{% block content %}

<div style="width:600px;; border-right:1px solid #666666;padding-right:20px;float:left;">
    <h2>{{ object.title }}</h2>
    {% if object.lead_image %}<img align="right" style="padding:0 10px 10px 10px;" class="thumbnail" src="http://joshuajonah.com/{{ object.lead_image }}" alt="{{ object.title }}" /> {% endif %}
    
    {{ object.body|codestrings|safe|linebreaks }}<br />

    {% get_free_comment_count for blog.Post object.id as comment_count %}
    
    <div class="article_menu note" style="padding-top:10px;">
        <b>Posted on {{ object.pub_date|date:"F j, Y" }}</b> - <a href="{{ object.get_absolute_url }}#comments">{{ comment_count }} Comment{{ comment_count|pluralize }}</a><br />Tags: {% for tag in object.tags.all %}{% if not forloop.first %}, {% endif %}<a href="/blog/tag/{{ tag }}">{{ tag }}</a>{% endfor %}
        
    </div>
    
    {% get_free_comment_list for blog.Post object.id as comment_list %} 
    
    <h2 id="comments">Comments</h2>
    
    {{ comment_list }}
    
{% for comment in comment_list %}
    <div class="comment_{% cycle odd,even %}" id="c{{ comment.id }}">
        <span class="comnum"><a id="c{{ comment.id }}" href="#c{{ comment.id }}">#{{ forloop.counter }}</a></span>
        <p><b>{{ comment.person_name|escape }}</b> commented, on {{ comment.submit_date|date:"F j, Y" }} at {{ comment.submit_date|date:"P" }}:</p>
        {{ comment.comment|escape|urlizetrunc:40|linebreaks }}
    </div>
{% endfor %}

<h2>Post a comment</h2>
{% free_comment_form for blog.post object.id %}
    
</div>
<div style="width:150px; float:right;">
    <h2 style="margin-bottom: 5px;">Latest 10 posts:</h2>
    <ul style="font-size:14px;padding-left:20px;">
    {% for item in latest_10 %}
        <li><a href="{{ item.get_absolute_url }}/blog/{{ item.pub_date|date:"Y" }}/{{ item.pub_date|date:"M"|lower }}/{{ item.pub_date|date:"d" }}/{{ item.slug }}">{{ item.title }}</a></li>
    {% endfor %}
        
    </ul>
    <a href="http://joshuajonah.com/blog" title="go to the blog homepage">More...</a>
</div>
<div style="clear:both;"></div>

{% endblock %}

```

The object.id is correct, but when i trace {{ comment\_list }}, it return an empty list.

The comment\_count right above it works fine and the comments exist in the database(referenced to the right object\_id)

I have tried everything, restarting the server, updating to the latest trunk of Django, replacing the contrib.comments, nothing seems to work.

If anybody has any idea I would love a response.

---

<div class="post-metadata">

**Author:** ![JoshuaJonah](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/joshuajonah/32/1775_2.png) [@JoshuaJonah](https://forum.kirupa.com/u/JoshuaJonah)\
**Post date:** [June 18, 2008, 3:31pm UTC](https://forum.kirupa.com/t/problem-listing-with-contrib-comments/263580/2 "2008-06-18T15:31:05Z")

</div>

bump guys

I have replicated the exact server locally and it works great there, just not on this MediaTemple DV. I have also re-installed python, mod\_python, mysqldb, and django on the server, same issue…
