I would like to use the universal code and have ran into difficulties getting the most basic functionality done.
I would like to create a shortname for test<
Try setting disqus_url
to match your registered site URL.
http://kenhirakawa.com/load-disqus-on-localhost/
The recommend solution seems to be to register multiple shortnames aka sites. This worked for me. E.g., balloons
and balloons-dev
.
Make sure to modify the Javascript they give you to replace the shortname in the line which is below the comment about "do not modify", if want to dynamically set which site you're using based on your environment (e.g., "balloons" if not settings.DEBUG else "balloons-dev"
).
https://help.disqus.com/customer/portal/articles/1053796-best-practices-for-staging-development-and-preview-sites
This might be old now, but I fixed it by keeping the URL empty on both my script and my Disqus setting
Disqus doesn't work on localhost as far as I know. It has always only worked on the production site for me. I believe it checks the hostname against the registered hostname.
None of the solutions above worked for me as of September 2013.
To get it to work I had to add localhost to the "Trusted Domains" list on this page:
http://[disqus_shortname].disqus.com/admin/settings/advanced/
and also use the "Universal Code" found below to embed it into my blog posts:
http://[disqus_shortname].disqus.com/admin/settings/universalcode/
And it works! :)
you should set this to make it work:
var disqus_developer = 1; // this would set it to developer mode
Reference: http://ray247.wordpress.com/2009/09/02/how-to-develop-with-disqus-on-localhost/