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

comment form doesn't load when using django-comments-xtd

I am new to both Django and Python and am trying to create my blog.My setup consists of Django 2.0.7 and Python 3.6.5 running on windows 10.I have configured only one app named "personal".In my case the the page loads with "0 Comments Posted" and it…
Amit
  • 1
  • 2
0
votes
1 answer

Django: Order by number of comments issue

I'm trying to order a list of items in django by the number of comments they have. However, there seems to be an issue in that the Count function doesn't take into account the fact that django comments also uses a content_type_id to discern between…
Paul
  • 753
  • 5
  • 19
0
votes
1 answer

How to comment a comment using Django’s comments framework

I'm using Django's comments framework to quite similar to the blog example. Can anyone suggest a solution how to reply to a post comment?
Daniel Ozean
  • 516
  • 1
  • 6
  • 16
0
votes
1 answer

Associate comments with an already authorized user?

My task is to create comment system in django project. I am tring to use django-comments-xtd app. I successfully added this app to my project and use {% render_comment_form for object %} in template. Is shows me fields like "Name", "Email", "Url"…
Nurzhan Nogerbek
  • 4,806
  • 16
  • 87
  • 193
0
votes
1 answer

How to use Post_save in Django

I am trying to add points to a User's profile after they submit a comment- using the Django comment framework. I think I need to use a post_save but am not sure to be perfectly honest. Here is what I have as a method in my models.py: def…
Emile
  • 3,464
  • 8
  • 46
  • 77
0
votes
1 answer

Redirect after comment submission in Django not working with django.contrib.comments.moderation?

I'm using django.contrib.comments for enabling comments on a blog. I was adding a hidden 'next' field to the comment form with the url to which I'd like the user to return after they submit their comment in order to bypass the posted.html template,…
Meilo
  • 3,378
  • 3
  • 28
  • 34
0
votes
1 answer

django-threadedcomments: 'RequestContext' object has no attribute 'META'

I try to use django-threadedcomments But when I add into template {% load threadedcomments_tags %} I get error on this lines {% render_comment_list for publication %} {% render_comment_form for publication %} 'RequestContext' object has no…
Sergey Tytarenko
  • 161
  • 1
  • 4
  • 10
0
votes
1 answer

django_comments adding new field in the model

I am trying to add a new field in django_comment model. According to the documentation, most custom comment models will subclass the CommentAbstractModel model: from django.db import models from django_comments.models import…
Mark Waugh
  • 423
  • 1
  • 5
  • 10
0
votes
1 answer

Why I can't get django_comments in the admin

The version of django is 1.10 and Python version is 2.7.6 .After I have migrate and create table,it showed that I have migrated the django_comments.When I get into my admin,I can't find the django_comments app. By the way,I have installed…
huangweiwei
  • 161
  • 1
  • 2
  • 9
0
votes
1 answer

Pushing app to Heroku failed because of django_comments

I tried to push my project to Heroku and it failed because I couldn't find django_comments. Here is my log: -----> Using set buildpack heroku/python -----> Python app detected $ pip install -r requirements.txt $ python manage.py…
Victory Omole
  • 693
  • 1
  • 6
  • 15
0
votes
0 answers

django "load comment"s not working correctly

I am trying to implement a comment section on my app that keeps track of bookmarks. This is the output that I got when I ran my local host server. It is not what I expected and I can't find out what's wrong. I expected there to be a comment form, a…
Victory Omole
  • 693
  • 1
  • 6
  • 15
0
votes
1 answer

Unable to get the comment form in django using django comments framework

I am trying to integrate django comment app with my own app named as 'blog'. However, when I am trying to get the comment form, I ma getting 'None' instead of the model form. below is my "home.html" template code where I want my form to appear. {%…
Sourav
  • 496
  • 2
  • 12
  • 28
0
votes
1 answer

How do I disallow comments from anonymous users?

I'm using django-contrib-comments, and I'm wondering how to ban anonymous users from posting comments. Simply not displaying the form to anonymous users is not enough, since anonymous users can still post requests to the correct URL. It is possible…
Flimm
  • 136,138
  • 45
  • 251
  • 267
0
votes
2 answers

django comments why is the field is_public being set to false

I am using the django comments system and everything is working ok apart from the comments are being added into the table with is_public being set to false. Does anyone know why this is and how I can fix it, i.e. have them set as true edit, this is…
John
  • 21,047
  • 43
  • 114
  • 155
0
votes
1 answer

Django-comments and legacy database? "OperationalError: no such table"

I'm using a legacy database (in addition to a 'normal' database), defined in my settings.py : DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), }, …
ThePhi
  • 2,373
  • 3
  • 28
  • 38