[Answer]-Using django_comments but getting 'QuerySet' object has no attribute '_meta'

1👍

Change your home.html to something like:

{% load comments %}
<html>
    {% for entry in categ %}
        {% get_comment_count for entry as comment_count %}
        {% render_comment_list for entry %}
    {% empty %}
        <p> categ not present </p>
    {% endfor %}
</html>

As I understand the template tags take an object as parameter, but you have provided the Queryset(Category.objects.all()).

Not tested the code, but something similar should work.

Leave a comment