Questions tagged [django-comments]

Django used to include a simple comments framework. Since Django 1.6, it's been separated to a separate project, use this tag for both. This framework can be used to attach comments to any model, so you can use it for comments on blog entries, photos, book chapters, or anything else.

Django used to include a simple, yet customizable comments framework. Since Django 1.6, it's been separated to a separate project, use this tag for both.

Comments are all "attached" to some parent object. This can be any instance of a Django model.

The primary interaction with the comment system is through a series of template tags that let you embed comments and generate forms for your users to post them.

Reference:

204 questions
0
votes
1 answer

Django Comments Xtd Comments are not nesting

I followed the tutorial on https://django-comments-xtd.readthedocs.io, everything seems to work find, the forms and the comments are working, but on the website they are not displayed properly. instead of looking like this: They all look like…
fnuff
  • 69
  • 2
  • 9
0
votes
0 answers

Django wont display my comments on template

I've tried to implement the comments within the html page after creating them in my models and I have migrated them but they still wont appear within the page although when I add a comment from the admin side of the website the add comment button I…
0
votes
1 answer

`django_comments_xtd` shared by multiple class models

I have a Django+Wagtail blog site integrated with django_comments_xtd as below: class PostDetail(Page): ... class Comment(XtdComment): page = models.ForeignKey('PostDetail', on_delete=models.CASCADE) def save(self, *args, **kwargs): …
Yan Tian
  • 377
  • 3
  • 11
0
votes
1 answer

save() method for django_comments_xtd model

I am using Wagtail + Django_comments_xtd + Django. My_Django_App/models.py from wagtail.core.models import Page class PostPage(Page): ... from django_comments_xtd.models import XtdComment class PostComment(XtdComment): page =…
Yan Tian
  • 377
  • 3
  • 11
0
votes
1 answer

How is BaseCommentNode.render() in django_comments triggerred exactly?

According to Django official doc, it reads, The template system works in a two-step process: compiling (parsing template texts to Nodes) and rendering (render Nodes to HTML file). Let us take django-contrib-comments as an example, if I have below…
Yan Tian
  • 377
  • 3
  • 11
0
votes
1 answer

CommentForm design question about Django-comments package

In Django's own comment framework, django-contrib-comments, it has below class defined: In models.py, class Comment (CommentAbstractModel): is defined. In forms.py, class CommentForm (CommentDetailsForm): is defined. Q: since the comment…
Yan Tian
  • 377
  • 3
  • 11
0
votes
1 answer

How to style forms produced by django_comments_framework using tailwindcss

I was trying to use tailwindcss plugins tailwindcss-forms to style comment forms produced by django comments framework. tailwindcs-forms requires tailwind styling class to be applied on level. However, in django comments framework,…
Yan Tian
  • 377
  • 3
  • 11
0
votes
1 answer

How to administer comment flags in django

I have django's comment framework enabled, and I have flagging urls set up: comments/flag/{{comment.id}}/ The comments are registered, and appear in the database. However, they are not appearing in the admin interface. What would be ideal would be…
jvc26
  • 6,363
  • 6
  • 46
  • 75
0
votes
1 answer

how to add comments only to authorized users?

Added the ability to add comments, made it so that only authorized users can add comments, but for some reason this does not work, please fix it. I also added tag strong, but for some reason it does not work either post_detail.html {% extends…
Squidward
  • 9
  • 1
  • 8
0
votes
1 answer

Comments in the admin panel are added, but they are not visible on the site

Based on this tutorial https://www.youtube.com/watch?v=An4hW4TjKhE&ab_channel=AbhishekVerma I'm trying to add the ability to add comments under posts, add a comment in the admin panel, everything is ok, but the site does not display anything under…
0
votes
2 answers

ModuleNotFoundError: No module named 'commentdjango'

I am trying to add comments to posts on my blog on this guide https://pypi.org/project/django-comments-dab/ but when doing migrations I get this error, thanks for any help
Squidward
  • 9
  • 1
  • 8
0
votes
1 answer

how to create comment tree in django

I need a comment system so can reply a comment to any comment I know how to write models and views and my only problem is showing them in the template For example, maybe a group of comments are like this: comment comment comment …
0
votes
1 answer

django-comments questions

I've just implemented django-comments. settings.py INSTALLED_APPS = ( ... 'django.contrib.comments', ) product_detail.html {% get_comment_count for product as comment_count %}

This event has {{ comment_count }} comments.

{%…
Fred Collins
  • 5,004
  • 14
  • 62
  • 111
0
votes
1 answer

Import error while customizing django-comments-xtd

acordign to the documentation for django-XtdComments in order to have my custom comment model instead of XtdComment the setting file should be like this: COMMENTS_APP = "django_comments_xtd" COMMENTS_XTD_MODEL = 'commenting.models.BookComment' at…
0
votes
0 answers

How can I show the details of a post along with its comments using Django framework?

new to the Django framework and a little rusty with coding. I am currently trying to build a tech blog from the ground up and have been using Django Central tutorials as a guide. Currently, I am stuck on this tutorial, particularly getting my views…
winegg
  • 1
  • 2