Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django zinnia disable comments or use alternative

I'm making a small personal django website for a beginning architect and should, among others, contain blogging functionality. I have been wondering for a while whether I should use an existing blogging app or write my own.

Of course there are many possible apps to use and for me, Zinnia looks pretty promising. However, I do have a problem with the way comments are implemented. As far as I can see it is implemented using the Django's commenting framework, but according to the Django documentation, this is deprecated (and should be replaced by a custom solution or something like Disqus).

So my question is: is there a way to disable comments in Zinnia completely (because I most likely won't need it). And also, is it possible to use Disqus in Zinnia? Because I can't really find anything on that in their documentation.

like image 740
PieterV Avatar asked Mar 10 '14 19:03

PieterV


1 Answers

I just successfully integrated Disqus into Zinnia.

Because django.contrib.comments is so tightly coupled to zinnia, I decided to take the easiest route.

Don't worry about removing the contributed django comments app. For each blog entry you want to uncheck "Comments enabled".

Then create your own zinnia theme and copy zinnia's entry_detail_base.html into your theme. In that file replace the contents for the block entry-comments with the code disqus provides in http://your_disqus_shortname.disqus.com/admin/settings/universalcode/

Turns out, it's a pretty easy solution.

like image 108
pymarco Avatar answered Sep 19 '22 13:09

pymarco