Developing with Disqus on localhost

by Venkata Koppaka | Nov 06, 2011

Disqus is a popular comment platform which can be integrated to any website by using simple Javascript snippet code.

This article talks about how to develop with Disqus, on localhost or on your development environment.

 When you are running Disqus for the first time, disqus tries to verify your URL, if your URL fails to match certain criteria you will be presented with "We were unable to load Disqus" message. Unfortunately this message will also be shown when you are running your website locally.

To overcome this error message and still have Disqus working correctly when developing(in localhost scenarios) you will have to set disqus_developer variable before your regular Disqus JavaScript snippet. Below is how you would do it -

var disqus_developer = 1;

Hope this helps

Cheers

Venkata

Filed Under:
  • General

Tags:
  • disqus
blog comments powered by Disqus