Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use django-contrib-comments (the app) in new Django projects?

From the documentation: "Django’s comment framework has been deprecated and is no longer supported. Most users will be better served with a custom solution, or a hosted product like Disqus. The code formerly known as django.contrib.comments is still available in an external repository."

Is the move to django-contrib-comments only a fallback for existing projects that use django.contrib.comments? Should I use django-contrib-comments in new projects and why (not)?

like image 587
allcaps Avatar asked Aug 21 '13 10:08

allcaps


1 Answers

I have been developing comments for our site using django.contrib.comments and found it to be quite a simple module and nothing else. If you are building a "just" commenting app to engage people, disqus might be a nice option. For instance, if you are building something like what stackoverflow is doing, you need to do by yourself.

For that, you can pretty well use django.contrib.comments and built your rest of the code on the top of it. I have been doing this and the following are points I would like to note

  1. Very good chance that you are going to write all Views again for Ajax support or any other custom support
  2. The app does not authenticate users. So, you might need to tweak this too
  3. Add some special fields in comments, remove some provided
  4. You might want to provide users to delete comments.. The built-in delete is just a flag where its marked "deleted" but not deleted exactly..

Regarding administration of commments, there might be lot you are going to improve.

It goes on, when you start doing it, you continue to tweak almost everything and make fit for your site. Probably if your tweaks seems to look too huge, I guess, start from scratch or take only parts of that django.contrib.comments where ever needed..

like image 75
Surya Avatar answered Oct 08 '22 15:10

Surya