Django-disqus: disqus comment box on -


i've created blog django , trying use disqus comments. having similar problem have seen in other questions in when post comments entries(on single entry pages) show on main page under 1 entry.

the main problem on main page of blog, have multiple entries, can 1 disqus comment box show on 1 entry. when @ source code javascript variables other blog entries seem showing correctly i'm not sure why comment boxes won't render under other blog entries.

i'm in development mode i'm not sure if makes difference...i'm noob @ of this.

this source code disqus javascript each entry...can me figure out why can't comment box render?

<div id="disqus_thread"></div> <script type="text/javascript"> /* <![cdata[ */      var disqus_shortname = 'whometaxi';     var disqus_developer = "1";     var disqus_identifier = "3";     var disqus_title = "third";      /* * * don't edit below line * * */     (function() {         var dsq = document.createelement('script'); dsq.type = 'text/javascript'; dsq.async = true;         dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';         (document.getelementsbytagname('head')[0] || document.getelementsbytagname('body')[0]).appendchild(dsq);     })(); </script>  <div id="disqus_thread"></div> <script type="text/javascript"> /* <![cdata[ */      var disqus_shortname = 'whometaxi';     var disqus_developer = "1";     var disqus_identifier = "1";     var disqus_title = "first post";      /* * * don't edit below line * * */     (function() {         var dsq = document.createelement('script'); dsq.type = 'text/javascript'; dsq.async = true;         dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';         (document.getelementsbytagname('head')[0] || document.getelementsbytagname('body')[0]).appendchild(dsq);     })(); </script>  <script type="text/javascript"> /* <![cdata[ */      var disqus_shortname = 'whometaxi';     var disqus_developer = "1";     var disqus_identifier = "2";     var disqus_title = "second!";      /* * * don't edit below line * * */     (function() {         var dsq = document.createelement('script'); dsq.type = 'text/javascript'; dsq.async = true;         dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';         (document.getelementsbytagname('head')[0] || document.getelementsbytagname('body')[0]).appendchild(dsq);     })(); </script> 

disqus designed load 1 disqus postbox per page. disqus uses page url unique identifier , 1 disqus embed can associated single url. if more 1 disqus embed present in source code of page, 1 embed load.

there way reload disqus embed different identifiers:

  disqus.reset({   reload: true,   config: function () {       this.page.identifier = "newidentifier";       this.page.url = "http://example.com/#!newthread";   } }); 

however, method still used 1 embed per page.


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -