Note that there are some explanatory texts on larger screens.

plurals
  1. PODisqus comments shown in all Blog posts in Django 1.5
    primarykey
    data
    text
    <p>Before someone telling me that this question is duplicate, I have read the solutions for all django-disqus related questions similar to my problem.</p> <ol> <li>I have a Django based blog application.</li> <li>Downloaded and installed django-disqus (pip install django-disqus)</li> <li>Followed the instructions from this documentation (<a href="http://django-disqus.readthedocs.org/en/latest/templatetags.html" rel="nofollow">http://django-disqus.readthedocs.org/en/latest/templatetags.html</a>)</li> <li>But comments are shown in all the blog posts.</li> </ol> <p>I have a base.html file which includes header and footer and is generic throughout the site. I have post.html where specific post will be displayed when clicked from base.html.</p> <p>So I have loaded <code>{% load disqus_tags %}</code> at the top of post.html and included the javascript like this</p> <pre><code>&lt;div id="disqus_thread"&gt;&lt;/div&gt; &lt;script type="text/javascript"&gt; /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */ var disqus_shortname = 'impras'; var disqus_url = 'http://impras.in/{{ post.get_absolute_url }}'; var disqus_identifier = '{{ post.get_absolute_url }}'; var disqus_title = '{{ post.title }}'; var disqus_developer = 1; /* * * DON'T EDIT BELOW THIS LINE * * */ (function() { var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })(); &lt;/script&gt; </code></pre> <p>I am testing this in local machine and not in production server, so i have set <code>DEBUG=True</code> and so <code>disqus_developer = 1</code>.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload