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

delete comments with the user

I am using the comment library. It is built on top of django-contrib-comments The question is, how can you make sure that when you delete a user, all comments associated with him would be deleted? I would be grateful for any help
0
votes
1 answer

My comments are not being displayed in a django blog

I am trying to add a comment section to add a comment section to my blog detail using django but when i run my server i get no error in the development server and the comments are not being displayed. I added the comments from my admin site. The…
Bello Victor
  • 19
  • 1
  • 6
0
votes
1 answer

FOREIGN KEY constraint failed, why am I getting this error?

I'm creating a blog and right now I'm working in the comments section, I'm working in the edit comments, everything works right, but the problem is the following, whenever I update the view I want to redirect to the blog post were I commented, but…
Sebastian Nin
  • 184
  • 1
  • 13
0
votes
1 answer

Wrong: /admin/login/, Expected: /accounts/login/

Django==3.0.8 django-comments-xtd==2.6.2 views.py @csrf_protect @login_required def like(request, comment_id, next=None): """ Like a comment. Confirmation on GET, action on POST. Templates: :template:`django_comments_xtd/like.html`, …
Trts
  • 985
  • 1
  • 11
  • 24
0
votes
1 answer

Can't see removal flags

Django 3.0.8 django-comments-xtd==2.6.2 I'm studyint this section of the tutorial: https://django-comments-xtd.readthedocs.io/en/latest/tutorial.html#removal-suggestion post_detail.html {% extends "base.html" %} {% load comments %} {% load…
Trts
  • 985
  • 1
  • 11
  • 24
0
votes
1 answer

Creating "Comment" instances in Django for migration?

I currently have a bunch of old comments, that I need to migrate to django.contrib.comment and the plan was to manually create instances of Comment and then save it as follows: # assume some_content is NOT a django Comment instance, but in some…
GoogleDroid
  • 185
  • 1
  • 6
0
votes
1 answer

Django Comments Newbie

I started learning Django about a month ago and just finished Django for Beginners by William Vincent. The book ends with Ch.15: Comments and shows how the admin can add comments to posts. Q: Can someone, please, show me or point me in the right…
0
votes
1 answer

Django Comment Function creates HTTP 405 Error

I tried to create a commenting function for my Django blog application and comments as such work fine but I can only add them through my admin page. However, I would like users to be able to add comments to blog posts. Comment model in…
0xDr0id
  • 189
  • 3
  • 18
0
votes
1 answer

Django Comments error following tutorial

I'm trying to integrate Django's comment app into my site but with no success. I've been following the documentation outlined at: Django comments The error I'm getting is: Caught ViewDoesNotExist while rendering: Tried search in module…
Valchris
  • 1,451
  • 2
  • 14
  • 33
0
votes
1 answer

authenticated commenting in Django

I'd like to implement authenticated commenting in Django. I've searched the net and found a few answers, including a few here on SO, but they are mostly from 2008 and 2009, on Django 1.1 or so. I'm currently on Django 1.3. I'm wondering if there's…
rabbid
  • 5,465
  • 7
  • 26
  • 37
0
votes
1 answer

Converting Django project from Python 2 to Python 3: pip3 install django_comments NameError unicode

System info: 64-bit OS-X, Python 3.7 I am converting a Django website from Python 2 to Python 3. To do this, I ran 2to3 on the whole project. I then installed all of the required modules in INSTALL_APPS in settings.py - except one:…
woefipuasd
  • 23
  • 4
0
votes
1 answer

Django 'next' not working?

Not sure what's wrong here. I'm using the built-in comment form. The form tag is like this:
The resulting HTML looks like this:
rabbid
  • 5,465
  • 7
  • 26
  • 37
0
votes
1 answer

putting commenting form on the same page as the post in django

I need help putting the commenting form for users on the same page as the post, currently i have the commenting form on another page but i'd really like the users to be able to post comments as soon as they are done reading the post, attached below…
Dafom Chollom
  • 25
  • 1
  • 3
0
votes
0 answers

My comment reply function is not working?

I am making a blog but I am stuck on a comment replies function. I don't know how to make a Reply function from which users can reply to the comments. I tried a lot but it's still displaying those comments like other comments not as replies to that…
0
votes
1 answer

Django retrieve all comments for a user

I'm using django-profiles and django.contrib.comments and I am trying to display all comments for a particular user in their profile. This is using the default profile_detail view from django-profiles. I've tried these two approaches and neither is…