My django project named comments
is here. It has an app comms
which is there to display comments using django_comments
.
I have
- installed
django_comments
- put it in INSTALLED_APPS field in
settings.py
- have defined
SITE_ID = 1
- enabled the sites framework
- put
url(r'^comments/', include('django_comments.urls'))
inurls.py
But this template file is giving me this error:
AttributeError at /
'QuerySet' object has no attribute '_meta'
What am I missing?
Change your home.html to something like:
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.