所有Disqus评论都显示在所有博客页面上 [英] All of the disqus comments are showing up on all the blog pages

查看:86
本文介绍了所有Disqus评论都显示在所有博客页面上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经构建了博客类型的应用。在Django。我正在尝试使用 montylounge的django-disqus 集成DISQUS以获得评论。但是所有博客文章的评论都会显示在每个博客页面上。可能是什么问题?

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模块是如何集成的,但是从Disqus的角度来看听起来好像您没有在每个页面上为 disqus_identifier变量设置唯一值。

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:

var disqus_identifier = 'blogpost_<BLOG POST ID HERE>';

之前,您需要包含Disqus javascript文件。

before you include the disqus javascript files.

这篇关于所有Disqus评论都显示在所有博客页面上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆