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

django: How to make django comments not public by default

Using django comments framework http://docs.djangoproject.com/en/dev/ref/contrib/comments/ Not sure is there option, to make all comments non private before they passed moderation... Looks like all my comments are added to site, just after being…
Oleg Tarasenko
  • 9,324
  • 18
  • 73
  • 102
4
votes
1 answer

Where to put Django comments moderation code?

I am implementing the stock Django comments to an existing site. I'd like comments to appear in multiple apps and models and have all the comments behave the same - i.e. an email sent, plus other bits (listening to 'flag' signals and dealing with…
Guy Bowden
  • 4,997
  • 5
  • 38
  • 58
3
votes
1 answer

A user with no email can't post a comment using Django's comments framework

I have overrode the comments framework's form.html template with my own {% load comments i18n %}
{% csrf_token %}
hobbes3
  • 28,078
  • 24
  • 87
  • 116
3
votes
2 answers

How does get_comment_permalink in Django's comments framework work?

I don't really understand get_comment_permalink in Django's comments framework. I created a few comments for my class Order using Django's comments, by default it shows a url of something like /comments/cr/18/1/#c1 and that url never exists. I…
hobbes3
  • 28,078
  • 24
  • 87
  • 116
3
votes
1 answer

Django comments change success url

I would like to change the URL you are redirected to when django posts a comment successfully - I'd much rather be taken to the page where the comment has been posted to, rather than the current redirect to a 'thanks for your comment' URL. Is there…
jvc26
  • 6,363
  • 6
  • 46
  • 75
3
votes
1 answer

Django comments app, getting content type

I am trying to create a comments application to use it everywhere where I need it, so I geuss I have to use ContentType to attach comments to different models of my project. so here: my model: class Comment(models.Model): user =…
Sevalad
  • 69
  • 6
3
votes
2 answers

how to make django comment model field Site not required

I'm using django-threadedcomments from ericflo on github. This app simply extends the native django comments framework. I am running into the same issue with both frameworks. I continue to get an error relating to mysql that site_id cannot be…
dave
  • 897
  • 1
  • 7
  • 20
3
votes
2 answers

'str' object has no attribute '_meta' error when setting up django-comments-xtd per documentation

My site is actually a wagtail site, although I'm not sure if that makes a difference. It's a simple blog application with a blog page to view posts and a page to show each post. I was following the instructions here to setup django-comments-xtd The…
Jake Rankin
  • 714
  • 6
  • 22
3
votes
3 answers

Django notification on comment submission

I am making use of Django's contrib.comments and want to know the following. Are there any utils or app out there that can be plugged into an app that sends you a notification when a comment is posted on an item? I haven't really worked with signals…
ApPeL
  • 4,801
  • 9
  • 47
  • 84
3
votes
3 answers

Django: return one filtered object per foreign key

Is it possible to return querysets that return only one object per foreign key? For instance, I want the to get the latest comments from django_comments, but I only want one comment (the latest comment) per object, i.e., only return the latest…
jnh
  • 33
  • 4
3
votes
1 answer

Struggling to get django_comments to work with Django REST Framework

I'm using Django REST Framework for the first time on a project and I'm struggling with one particular part. The project is an issue tracker-type applicaton and it uses django_comments to allow for comments on issues. I'm now building an API on top…
3
votes
4 answers

Django 1.1 - comments - 'render_comment_form' returns TemplateSyntaxError

I want to simply render a built-in comment form in a template, using Django's builtin commenting module, but this returns a TemplateSyntaxError Exception. I need help debugging this error, please, because after googling and using the Django API…
Kenny Meyer
  • 7,849
  • 6
  • 45
  • 66
3
votes
1 answer

WSGIRequest error using django_model_comments

Sorry to post yet another question related to the error: 'WSGIRequest' object has no attribute 'find' But I really can't find the answer anywhere. I'm trying to use the django_model_comments app, which extends django's included comment app. Did…
Anoyz
  • 7,431
  • 3
  • 30
  • 35
3
votes
1 answer

Django Comment, append symbol to the url comment?

im using the comment system, now, i would like to re-write the segment form the url comment and append a symbol #, i want to move the page seccion to the comment list exactly to the last comment user with username Im…
Asinox
  • 6,747
  • 14
  • 61
  • 89
3
votes
2 answers

Django comments reverse relationship

When using django.contrib.comments is there anyway to add the reverse relationship to a model that has comments? For example: post = Post.objects.all()[0] comments = post.comments.all()
sleepyjames
  • 779
  • 5
  • 16
1
2
3
13 14