Disqus comments fails to load on localhost?

后端 未结 7 990
天命终不由人
天命终不由人 2020-12-13 19:05

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<

7条回答
  •  天命终不由人
    2020-12-13 19:33

    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

提交回复
热议问题