0

I have

  1. installed django_comments
  2. put it in INSTALLED_APPS field in settings.py
  3. have defined SITE_ID = 1
  4. enabled the sites framework
  5. put url(r'^comments/', include('django_comments.urls')) in urls.py
  6. have written {% load comments %} in home.html

But I still can't see any comments loading in my home page. What am I missing?

Kamal Banga
  • 107
  • 1
  • 10
  • Please edit your question and show your relevant settings. Also, have you defined a `SITE_ID`? – rnevius May 04 '15 at 06:12
  • @rnevius What other settings? – Kamal Banga May 04 '15 at 06:14
  • 2
    I'm just saying to actually show your settings file here. There may be a misconfiguration. Also, `{% load comments %}` doesn't actually *show* comments...it just loads them. You need to use `{% render_comment_list for [object] %}` to actually show them (replacing `[object]` with your model name.) – rnevius May 04 '15 at 06:16
  • {%load comments %} is this assignment tag.please paste your code here,cant say anything from this description – Zealous System May 04 '15 at 09:11
  • @rnevius: Thanks, I wasn't rendering the comments just loading them. However, I am still facing issue, I asked my new question [here](http://stackoverflow.com/questions/30026483/using-django-comments-but-getting-queryset-object-has-no-attribute-meta). Please see that. – Kamal Banga May 04 '15 at 09:17
  • @KamalBanga, I added my comment as an answer. I'll check out your other question – rnevius May 04 '15 at 11:41

1 Answers1

1

{% load comments %} doesn't actually show comments...it just loads them. You need to use {% render_comment_list for [object] %} to actually show them (replacing [object] with your model name.)

Read more in the section on displaying comments in the docs.

rnevius
  • 26,578
  • 10
  • 58
  • 86