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 Contrib Comments: How to override the comment's textarea widget?

Using django.contrib.comments, I've defined a custom comment app. I wanted to override the text area widget so that the textbox appears smaller. So what I created was this: #forms.py class CustomCommentForm(CommentForm): #...otherstuff... …
powlo
  • 2,538
  • 3
  • 28
  • 38
1
vote
1 answer

Email notifications for follow-up comments in Django's comments app

I'm using the stock Django comments framework. What's the best way to add a checkbox to the comment form to allow commenters to be notified of future comments?
Joe Mornin
  • 8,766
  • 18
  • 57
  • 82
0
votes
1 answer

Django comments redirect from posted/preview

Im implementing the django comments app. What is the best way to redirect to the current page when post is clicked rather than the post page? I've followed this guide: http://www.omh.cc/blog/2008/mar/9/free-comments-redirection/ My form looks…
Joseph Roberts
  • 569
  • 3
  • 10
  • 29
0
votes
1 answer

can I use Django comment on other pages?

I wonder whether it is possible to use Django in-built comments framework for other pages, that is not related to "blog entries". For example I want to add comments field on each every page about a movie. I tried to follow the instructions here…
starcorn
  • 8,261
  • 23
  • 83
  • 124
0
votes
1 answer

Get comments for object using one query

Is it possible to get object with comments related to it? Right now django comment framework creates query for every object which has related comments and another queries for comments owners. Can I somehow avoid this? I use django 1.4 so…
szaman
  • 6,666
  • 13
  • 53
  • 81
0
votes
0 answers

Nested comments in django comments app

I am using django comments app to allow user to submit comments on my site, but want to have nested comments. So that user can post comment as a reply to a particular user's comment and I can also send notifications to the user in case somebody…
Sachin
  • 3,672
  • 9
  • 55
  • 96
0
votes
1 answer

IntegrityError at /comments/post/ in django comments

I have been using Django inbuilt comments framework, for some time and it was working absolutely fine. Since we are in development phase initially after testing it, we did not try it out. But yesterday I posted a comment, just for the fun of it and…
Sachin
  • 3,672
  • 9
  • 55
  • 96
0
votes
1 answer

Django comments not showing up in template

I'm having trouble getting my comments to display in my template. When I test an objects comment in the shell - a list of comments are returned and they seem fine. However in my template they don't appear. It does take longer to load the page when I…
9-bits
  • 10,395
  • 21
  • 61
  • 83
0
votes
1 answer

Custom django comments admin slot

So I am using Djangos builtin comments app (django.contrib.comments) for my blog application. I made several changes to the forms display, etc. (as described in the documentation). One last thing that bothers me is that the Comments model is in it's…
Veles
  • 1,512
  • 4
  • 14
  • 28
0
votes
1 answer

Linking Django comments with django users

I am using Django in built comments for allowing users to comment on my posts. I have also customized the app to do the following thing Registered users will see just the text area for comments Unregistered users will see the whole form Although…
Sachin
  • 3,672
  • 9
  • 55
  • 96
0
votes
1 answer

Use custom Comment app and the default Comment from Django

I have a custom comment app but also want to use the original Comment app, without the added fields of my custom app. Is there a way to do this? Thanks!
0
votes
0 answers

Cannot display a comment on a blog page - django

I have been trying to create a comment section for a blog site. Comments should only be made by the site's users. I am able to make comments and display them in the comment section from the admin panel, but when the users submit comments they don't…
0
votes
2 answers

django-comments-xtd clashing with wagtail-localize

I am following the official tutorial for wagtail-localize, and I am at the step to set up a second locale. When I hit save, I get: DoesNotExist at /admin/locales/new/ XtdComment matching query does not exist. Request Method: POST Request URL: …
autosnake
  • 23
  • 7
0
votes
2 answers

How to write a comment and reply with django with this model?

I'm a newcomer and I have this problem that I can't send this comment to database it just refreshes the page and nothing happens. def blog_detail(request , id): post = Post.objects.get(pk = id , status = True) comments =…
0
votes
1 answer

Duplicate Media(CSS, JS) load when using class inheritance in django components

I am using django-components. Common parts are inherited from parent classes and child classes are registered as components. It is written as follows components.py from django_components import component class Parent(component.Component): def…
y.dai
  • 33
  • 4