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
1
vote
1 answer

Django "comment_was_flagged" signal

This is my first time working with django signals and I would like to hook the "comment_was_flagged" signal provided by the comments app to notify me when a comment is flagged. This is my code, but it doesn't seem to work, am I missing…
tsoporan
  • 659
  • 2
  • 8
  • 15
1
vote
3 answers

Django comments being spammed

I am using the built in comment system with Django but it has started to be spammed. Can anyone recommend anything I can use to stop this such as captcha for django etc. I'm looking for something that I can use along with the comment system rather…
John
  • 21,047
  • 43
  • 114
  • 155
1
vote
1 answer

Trouble understanding how django-fluent-comments code works

I've spent a bit of time digging around in django-fluent-comments recently. I know a little bit of django, but am completely stumped by how this package works. Essentially, I don't understand where the actual query to get the comments for an…
rix
  • 10,104
  • 14
  • 65
  • 92
1
vote
3 answers

Django get_comment_list isn't returning the comments

I am using Django's comments framework to manage comments in my website. I have custom comment model and form that extends Django's, as following: Model: class FTComment(Comment): upvotes = models.PositiveSmallIntegerField() downvotes =…
Bruno Finger
  • 2,105
  • 3
  • 27
  • 47
1
vote
1 answer

Django threadedcomments - registered users

I am planning to use Django's comment system (with the threadedcomments app). Since I only allow registered users to post, the mandatory user/url/email fields are not needed (just want a ForeignKey(User)). I have a feeling I am not the first (nor…
Boris
  • 3,163
  • 5
  • 37
  • 46
1
vote
3 answers

What are some possible uses for Django's IPAddressField?

What are some common reasons, or example cases, in which storing the user's IP address in a model instance would be useful? I can't think of any off the top of my head. Reading through Django's now-deprecated Comments framework, I see that they…
sgarza62
  • 5,998
  • 8
  • 49
  • 69
1
vote
1 answer

How to add pagination to django.contrib.comments?

I am using Django's Comments Framework in my project to handle comments of a movie : My my_comments_app/models.py looks like this : from django.db import models from django.contrib.comments.models import Comment class UserExperience(Comment): …
madil
  • 35
  • 6
1
vote
1 answer

Errors creating generic relations using content types (object_pk)

I am working to use django's ContentType framework to create some generic relations for a my models; after looking at how the django developers do it at django.contrib.comments.models I thought I would imitate their approach/conventions: from…
thornomad
  • 6,707
  • 10
  • 53
  • 78
1
vote
0 answers

Caching a list of Django comments

I have a site which uses the standard Django comments (well, a subclass of that, but mostly the same). I want to cache the list of comments that's rendered on each page, as that's quite a big and slow query. But, while I know how to cache individual…
Phil Gyford
  • 13,432
  • 14
  • 81
  • 143
1
vote
1 answer

Commenting breaks when debug is set to off

comments work fine when debug is on but when I turn it off I get "an error occurred" message and it fails to redirect me back to the original page, instead showing the error message at url "www.MYSITE/comments". I'm using django threaded comments on…
Jake
  • 733
  • 2
  • 7
  • 18
1
vote
2 answers

Django comment moderation, not public

im trying moderation comment form the book of James Bennett, i think that all is fine, but the moderation comment is just for SPAM and the comments are public.. so , how ill put the comments always not public, i need that just the administrator can…
Asinox
  • 6,747
  • 14
  • 61
  • 89
1
vote
1 answer

Upgrading existing django_comments to Django 1.5

I have a Django 1.4 site that uses the Django comments app. I'm upgrading my dev version to Django 1.5 and extending the User model - I have a Person model which extends AbstractBaseUser, and AUTH_PROFILE_MODULE = 'membership.Person' in my…
Phil Gyford
  • 13,432
  • 14
  • 81
  • 143
1
vote
0 answers

Django comments form validation, check if the comment is from authenticated user

I wanted to add reCaptcha to the comment form, but only for non-authenticated users. I've created my own comments app, using reCaptcha more or less according to this post, except that I don't have any (explicit) view function to post the comment,…
Headcrab
  • 6,838
  • 8
  • 40
  • 45
1
vote
1 answer

Django comment email notification

I'm trying to setup notifications on the django comments framework. I've gone through the documentation here - https://docs.djangoproject.com/en/dev/ref/contrib/comments/moderation/#django.contrib.comments.moderation.CommentModerator I've added all…
JDavies
  • 2,730
  • 7
  • 34
  • 54
1
vote
1 answer

How to remove reCAPTCHA field for authorized users?

I have made custom comment app. The only difference that it has reCAPTCHA field in comment form. class CustomCommentForm(CommentForm): recaptcha = ReCAPTCHAField() I used this snippet http://djangosnippets.org/snippets/1653/ for integration…
Nick
  • 1,134
  • 7
  • 12