문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top