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

From the documentation: “The Djangos comment structure is outdated and no longer supported. Most users will be better served with a custom solution or hosted product, for example, Code, formerly known as django.contrib.comments, is still available in the external repository.

Is the switch to django-contrib-comments only redundant for existing projects using django.contrib.comments? Should I use django-contrib comments in new projects and why (not)?

+6
source share
2 answers

I am developing comments for our site using django.contrib.comments , and found it to be a fairly simple module and nothing more. If you are creating a “just” commentary app to attract people, disqus might be a good option. For example, if you create something like what stackoverflow does, you need to do it yourself.

You can use django.contrib.comments very well for django.contrib.comments and build the rest of the code on top. I do this and the following points that I would like to point out

  • It is very likely that you will re-write all submissions for Ajax support or any other user support.
  • The application does not authenticate users. Therefore, you may also need to configure this feature.
  • Add some special fields in the comments, delete some provided
  • You might want to provide users with delete comments. The built-in delete is just a flag, where its marked ones are “deleted” but not deleted exactly.

Regarding commit administration, there can be a lot of things you are going to improve.

It goes on, when you start doing it, you go on setting up almost everything and fit into your site. Probably if your tricks seem too huge, I think start from scratch or take only parts of this django.contrib.com where ever you need it.

+4
source

Google Groups Django developers have an offer:

"... if you care about how the comments work, but just want something easy, then Disqus (and its competitors) are easier to use and have much better features (spam alerts, moderation, etc.), If you need something complex and specific, on the other hand, you'd better write something from scratch. "

And django-contrib-comments (new home) is intended as boneyard.

0
source

Source: https://habr.com/ru/post/952188/


All Articles