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
2 answers

How do I get django comments to join on auth_user

I'm using the django comments framework, and when I list the comments I want to include some of the information stored in auth_user. However, I find I need an extra query for each comment to get the user info. I tried using select_related() when I…
AlexH
  • 317
  • 1
  • 3
  • 17
2
votes
1 answer

Adding django-pagedown to Django 1.5 Blog Comments

I'd like to add django-pagedown to my site's blog. I have a site, and an application called blog, built with Django, and I've implemented the built-in comments. These work just fine but I'm now trying to get django-pagedown to work in the comments.…
nicorellius
  • 3,715
  • 4
  • 48
  • 79
2
votes
0 answers

Customizing django.contrib.comments

The customization that django.contrib.comments on django v1.4.5 (I know its deprecated on future versions) is quite low. Moderation is quite customizable.. Right now, the preview and error page for comment POST request land on new page. Redirection…
Surya
  • 4,824
  • 6
  • 38
  • 63
2
votes
2 answers

Use django comments on article's comment page (/a/2/comments/)

I have made a blog with Django with articles (like so: mysite.com/a/article_id/) and would like users to be able to comment on the article's comment page (i.e: mysite.com/a/article_id/comments/) So far I haven't had much success. It seems that the…
oliv23
  • 109
  • 2
  • 11
2
votes
2 answers

AttributeError: 'str' object has no attribute '_meta'

I just begin to study Django, and today come to the comment part, I just practice from the Django Document.https://docs.djangoproject.com/en/1.4/ref/contrib/comments/example/. The command to add comment form works well when i do my practice on…
ryu
  • 651
  • 9
  • 23
2
votes
1 answer

Customising the Django comment app

I'm having problems with customising the django comments framework. I need to add a 'company' field. I've followed the documentation and not really getting anywhere. It's not far from working because when i add COMMENTS_APP = 'comments_app' to my…
JDavies
  • 2,730
  • 7
  • 34
  • 54
2
votes
2 answers

Reorder comments from django comments framework in reverse order

I would like to reorder my comments to display newest first. I am using the built in Django comments framework. Is there a built in, or easy way to do this?
cjohnston
  • 135
  • 6
2
votes
2 answers

Customize django render_comment_form fields

(using django.contrib.comments) When placing : {% load comments %} {% render_comment_form for event %} into the template. It renders a form with a: Name, email, url and comment field. Is there a way to just have the comment field appear, and have…
Modelesq
  • 5,192
  • 20
  • 61
  • 88
1
vote
1 answer

Django comments framework issues

Im trying to implement commenting on my site using the comments framework. I've followed the documentation: https://docs.djangoproject.com/en/dev/ref/contrib/comments/ https://docs.djangoproject.com/en/dev/ref/contrib/comments/example/ My template…
Joseph Roberts
  • 569
  • 3
  • 10
  • 29
1
vote
2 answers

Edit form for django comments

I am using django comments apps to allow user to submit comments, but there is not any edit form for the comment. Does the comment app support an edit form or do I have to make one of my own. Any help is appreciated.
Sachin
  • 3,672
  • 9
  • 55
  • 96
1
vote
1 answer

Custom django comments

Im building a customized comments app for django, using django comments itself. Ive followed https://docs.djangoproject.com/en/dev/ref/contrib/comments/custom/ to the letter, and I have 2 issues, one is that my custom comments instances do not give…
maumercado
  • 1,453
  • 4
  • 23
  • 47
1
vote
1 answer

Django comments in shell

I'm having trouble pulling comments into my template using django comments. I'd like to test some things out in the shell - ie. pulling in an object and getting the set of comments for it - but I'm not sure how to do that. Is there away to access a…
9-bits
  • 10,395
  • 21
  • 61
  • 83
1
vote
2 answers

Fetching Django-comments from all sites for a given object

I am sharing objects between different sites using the Django-sites framework. This works fine because I was able to define a many-to-many relationship within my models. However, while retrieving the comments (Django-comments) for the objects using…
Alex Gonzalez
  • 981
  • 1
  • 11
  • 17
1
vote
1 answer

django-mptt-comments app error

I am trying to use django-mptt-comments app on my django project however I'm running into problems when I try posting a comment. I get the error : AttributeError: 'NoneType' object has no attribute 'level' Here is the traceback:…
cclerv
  • 2,921
  • 8
  • 35
  • 43
1
vote
1 answer

Ordering entries via comment count with django

I need to get entries from database with counts of comments. Can i do it with django's comment framework? I am also using a voting application which is not using GenericForeignKeys i get entries with scores like this: class…
Mirat Can Bayrak
  • 631
  • 7
  • 18