Better Alternative to django.contrib.comments

2k views Asked by At

I am having a nightmare working with django default commenting app. I am trying to customize it and add it to div tags to each field and have not been able to find out how to do it so far :(

see: https://stackoverflow.com/questions/27033268/django-comments-app-adding-each-field-of-comments-app-to-div-classes

Is there a better alternative of this app?

Thanks

3

There are 3 answers

5
Yeo On BEST ANSWER

As stated in the official document, https://docs.djangoproject.com/en/1.7/ref/contrib/comments/

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.

If you still want to work with the old comments app, the repo is available at https://github.com/django/django-contrib-comments You might want to customized as needed

However if you want to use another apps, you can use Disqus as alternative. https://github.com/arthurk/django-disqus

0
Peter Rosemann On

Django Comments is still alive, but in a seperate repository. You find the documentation here:

For a quick start of the comments app, follow these initial steps (see above docu):

pip install django-contrib-comments

Enable the “sites” framework by adding 'django.contrib.sites' to INSTALLED_APPS and defining SITE_ID=1 (assuming you use just one domain in your current Django project), and ALLOWED_HOSTS = ['localhost', '127.0.0.1', '[::1]'].

Install the comments framework by adding 'django_comments' to INSTALLED_APPS.

Run manage.py migrate so that Django will create the comment tables. Add the comment app’s URLs to your project’s urls.py:

urlpatterns = [
    ...
    url(r'^comments/', include('django_comments.urls')),
    ...
]

Within the templates you use then the related template tag, more about this and addtional options you find in the docu.

0
Praveen Kusuma On

Here are some alternatives as per my personal experience with pros and cons:

  1. Disqus - Very user friendly, supports a wide range of social media apps but not free
  2. Facebook Comments - User friendly, free but only supports facebook. If users does not have facebook account, they cannot comment

Hence, i used WidgetPack Comments. Its very user friendly, self-hosted and easy to use. There is a step by step tutorial on its usage here Step by Step Tutorial.

If you are a reactjs developer, there is an npm module available. This allows to implement it using just a couple of lines of code: react-widgetpack-comments