Django + disqus: Comment options below every blog entry -
on site, displaying multiple blog entries on 1 page. give users option comment below every entry, django-disqus
giving me hard time.
in html template, rotating through blog entry items , want display comment option disqus
below:
... {% load disqus_tags %} {% disqus_dev %} ... {% entry in blog %} <div class="span5"> <p>{{ entry.text }}</p> {% set_disqus_identifier "entry_" entry.id %} {% disqus_recent_comments shortname 5 50 0 24 %} {% endfor %} ...
however, django complaining error
exception type: attributeerror
exception value: 'list' object has no attribute 'var'
how can display dedicated comment field disqus
every blog entry?
it seems not possible display multiple comment sections on same page since disqus
using url
identifier.
there post regarding similar implementation in js.
i have discarded django-disqus
, implemented django-fluent-comments
link github. seems allow specific requirement.
simply add code:
... {% load comments %} ... {% render_comment_list object %} ...
where object
blog entry object. works me solution.
Comments
Post a Comment