Kamal Banga
Kamal Banga

Reputation: 107

Displaying comments using django_comments

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?

Upvotes: 0

Views: 94

Answers (1)

rnevius
rnevius

Reputation: 27112

{% 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.

Upvotes: 1

Related Questions