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
2
votes
1 answer

Django's comments framework and CSRF

I understand that the Django's comments framework was designed for anonymous public comments like you commonly see below a blog or an artcile. In other words, anyone can post comments. I am using the comments framework for only allowing logged in…
hobbes3
  • 28,078
  • 24
  • 87
  • 116
2
votes
1 answer

Django get_comment_list returns empty list

I've been pulling my hair out over this and can't figure out what's going on. In my view I can do this: from django.contrib.comments import Comment ... context['comments'] = Comment.objects.filter(object_pk = self.kwargs['pk']) ... Then in my…
9-bits
  • 10,395
  • 21
  • 61
  • 83
2
votes
2 answers

How to provide a delete button for django built in comments framework

I am using django comment framework. It says it provides a lot of functionality, and I can also see in the source files that there are various options, but the documentation is a bit poor. There are two issues I want to provide a delete button for…
Sachin
  • 3,672
  • 9
  • 55
  • 96
2
votes
0 answers

How does django comment framework's anti-spoofing work?

In django comment framework, the CommentSecurityForm contains a 'timestamp' and a 'security_hash' field for the purpose of 'anti-spoofing', besides the commonly used CSRF toekn. What safety value does it have? I need to make a form with generic…
Xun Yang
  • 4,209
  • 8
  • 39
  • 68
2
votes
2 answers

What is the cleanest/simplest way to paginate django comments?

Using Django's built in comment framework what is the cleanest/simplest way to the paginate comments?
Chris Herring
  • 1,412
  • 9
  • 10
2
votes
2 answers

Comment and Rating system for Django

I am new to Django, I don't know a lot of them. I am trying to build a comment and rating system for a blog in Django. There are some apps that I can use to achieve this(Comment and Rating)? Please let me know. Best Regards,
André
  • 24,706
  • 43
  • 121
  • 178
2
votes
1 answer

what is key difference between posting a new comment and replying to existing comments?

I want to find out the key differences when assembling comment form between posting a new comment and replying to existing comments and how are they implemented in source code of django_comments_xtd? I reviewed the source code for a quite a long…
Yan Tian
  • 377
  • 3
  • 11
2
votes
1 answer

How to redirect back to same page when errors in Django comments

How do you get Django comments to redirect back to the same page where you're filling out a comment if there are errors in the comment submission form? So basically I have a template like this: {% block content %} {% render_comment_form for show…
user680696
2
votes
1 answer

Why are comment permalinks for django-comments-xtd going to example.com in Wagtail?

I'm setting up comments in Wagtail using django-comments-xtd and one thing I'm having trouble figuring out is why my comment permalinks keep going to https://example.com/news/bloggy-test-post/#c1 instead of…
2
votes
3 answers

django-comments-xtd not accessible with wagtail? How to troubleshoot?

I have installed django-comments-xtd following the quick start guide in the documentation here. When I go to access the /comments URL, I only get a 404 error, and the message 'Raised by: wagtail.wagtailcore.views.serve'. I followed the…
Jake Rankin
  • 714
  • 6
  • 22
2
votes
1 answer

Comments moderation queue view from django.contrib.comments - gone in 1.2?

I've happily used the neat comment moderation queue view supplied with contrib.comments in 1.0.x, but recently thought I'd use it in a Django 1.2 site, only to discover that the view is no longer there (no longer referenced in contrib.comments.urls,…
Steve Jalim
  • 11,989
  • 1
  • 37
  • 54
2
votes
1 answer

Django comments security_hash

Getting an error with a HiddenInput field called "security_hash" It says in the documentation that had I used {{ form }} in my template these values would have been created automatically But I am not using a template, rather just the comments/post/…
2
votes
1 answer

Django comments ValueError

I am getting an error ValueError when posting to an endpoint supplied by django-comments as follows which I would like to resolve: The message in detail is "Attempting go get content-type '7' and object PK '1' exists raised ValueError". I am not…
2
votes
1 answer

User entered links display as text in Django

I just finished creating a user commenting system on a social networking app I am building with Django (python version 2.7.8, Django verion 1.6). Everything is working well with the commenting system, but I have encountered an issue. If a user…
2
votes
4 answers

How to automatically accept comments from authenticated users in django.contrib.comments

Is there a way to make Django automatically set the is_public field of the comment as True. I only allow comments for registered users and would like to skip manual review of comments posted.
Sævar
  • 1,602
  • 11
  • 18
1 2
3
13 14