Open kinganu opened 7 years ago
The commonly use is put and slug, of if you want, generate a ramdom identifier and put it:
<div id="fb-root">
<!-- TODO: Review this with documentation -->
{% set_disqus_identifier self.slug %}
{% set_disqus_title self.title %}
{% set_disqus_url self.full_url %}
{% disqus_dev %}
{% disqus_show_comments %}
</div>
These is my example.
Hey, I was looking for a commenting system solution for a Django blog and it was quite troublesome to engineer one from ground zero within Django. So I found out that I could use disqus. I saw your extension and figured it was the best solution. Turns out it is no longer needed, since you can't get an API key without a pro upgrade on disqus, and it is easier to use their universal code JS snippet to embed the commenting system easily.
For anyone curious here is what I did. Create an account at disqus, select 'I want to use it in my site', add your sites shortname and domain (in my case Im devving locally on ubuntu VM and used my dev domain I created 'djang0.me' for my test django blog). Go to installation instructions, select 'universal code' at bottom and copy the code. I decided to use an include disqus block in my django blogs Post template, which is very nice:
Only thing Im a little confused about is, they recommend uncommenting the variables: //this.page.url = djang0.me; // Replace PAGE_URL with your page's canonical URL variable //this.page.identifier = ; // Replace PAGE_IDENTIFIER with your page's unique identifier
Would you know what should I use for this.page.identifier in a django blog, if anything?