I've built a blog type app. in django. And I'm trying to integrate DISQUS for comments using montylounge's django-disqus. But comments from all the blog posts are showing up on every blog page. What could be the problem ?
相关问题
- Django __str__ returned non-string (type NoneType)
- Django & Amazon SES SMTP. Cannot send email
- Django check user group permissions
- Django restrict pages to certain users
- UnicodeEncodeError with attach_file on EmailMessag
相关文章
- Profiling Django with PyCharm
- Why doesn't Django enforce my unique_together
- MultiValueDictKeyError in Django admin
- Django/Heroku: FATAL: too many connections for rol
- Django is sooo slow? errno 32 broken pipe? dcramer
- Django: Replacement for the default ManyToMany Wid
- Upgrading transaction.commit_manually() to Django
- UnicodeEncodeError when saving ImageField containi
I think you should view page source code. Check
disqus_url
- is it an absolute URL?In
django-disqus
often written like this:{% set_disqus_url object.get_absolute_url %}
butobject.get_absolute_url
is your settings.I'm not sure how the django module integrates, but from a Disqus point of view it sounds like you're not setting a unique value for the "disqus_identifier" variable on each page.
You need to have the variable instantiated like this:
before you include the disqus javascript files.
You can try this. In my case, it solved my problem similar to yours. Cheers!
var disqus_url = 'yoursite_dot_com/path_to/id-of-blog-post';
var disqus_identifier = '/id-of-blog-post/';