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

IOError: [Errno 2] No such file or directory: 'README.rst'

I tried to use pip to install django_comments, then this error occurred(run in virtualenv @Windows): traceback: (env) E:\mdknowledge>pip install django-comments Collecting django-comments Using cached django-comments-1.0.0.b.tar.bz2 Complete…
Henry
  • 25
  • 1
  • 2
  • 7
0
votes
1 answer

Django Comment Framework, Delete not working

I am new to Django. I am currently trying to implement comments section for each post in my application. I am having error when trying to delete specific comment and getting error int() argument must be a string or a number, not 'SimpleLazyObject'.…
user3487775
  • 147
  • 9
0
votes
1 answer

how to post a new comment through a method in django?

I am using 'django_comments' for commenting in my site. Now i want to post a new comment via a method in my 'views.py'. I searched and only found posting comments using {{ forms }} in templates. So how can i post a new comment through a method.…
Jerin A Mathews
  • 8,572
  • 4
  • 26
  • 49
0
votes
1 answer

Using django_comments but getting 'QuerySet' object has no attribute '_meta'

My django project named comments is here. It has an app comms which is there to display comments using django_comments. I have installed django_comments put it in INSTALLED_APPS field in settings.py have defined SITE_ID = 1 enabled the sites…
Kamal Banga
  • 107
  • 1
  • 10
0
votes
1 answer

Displaying comments using django_comments

I have installed django_comments put it in INSTALLED_APPS field in settings.py have defined SITE_ID = 1 enabled the sites framework put url(r'^comments/', include('django_comments.urls')) in urls.py have written {% load comments %} in…
Kamal Banga
  • 107
  • 1
  • 10
0
votes
1 answer

How to implement Django-Comment Reply?

How to provide reply option to the user so that they can comment for an existing comment ?
Vik
  • 57
  • 2
  • 7
0
votes
1 answer

Custom template for Django's comments application does not display fields

I want to use django.contrib.comments in a blogging application and customize the way the form is displayed. My problem is that I can't get the fields to display although displaying the hidden fields works just fine. I had a look at the docs and…
jnns
  • 5,148
  • 4
  • 47
  • 74
0
votes
1 answer

Accessing comments on an object via reverse relationship with Tastypie

I'm building an API using Tastypie with Django and I've run into a bit of an issue. I have a model called a Moment (basically a blog post, with a title and body text), and I want to be able to attach comments to it and retrieve them via the API. I'm…
Matthew Daly
  • 9,212
  • 2
  • 42
  • 83
0
votes
2 answers

Django comments pagination isnt working

there is a trouble I'm new to django and there is an issue I can't understand, there is a view: def article(request, article_id = 1, comments_page_number = 1): all_comments = Comments.objects.filter(comments_article_id = article_id) …
0
votes
1 answer

Django Comments Signals firing twice

I've attached a handler to the django.contrib.comments signals (comment_was_posted and comment_will_be_posted). Each handler is being called twice. I can't seem to figure out why, nor can I figure out how to tell if I'm on the first or second call.…
dubloons
  • 1,136
  • 2
  • 12
  • 25
0
votes
1 answer

Modifiying a Django view for a certain project

So I simply want to use the delete() from the django.contrib.comments.views.moderation module, but only allowing the users with permission to delete their comments. In order to do this, all I have to do is uncomment…
rk919
  • 307
  • 2
  • 6
  • 13
0
votes
1 answer

Django - How to query the Django Comments Framework

I'm using the Django Comments Framework. I need to query all the comments of a certain Content Type. How can I do that? In the view I'm doing this query: from django.contrib.comments.models import Comment comments =…
André
  • 24,706
  • 43
  • 121
  • 178
0
votes
2 answers

Customizing django-comments

So, I'm using django.contrib.comments. I've installed it OK but rather than the unwieldy default comment form, I'd like to use a custom form template that just shows a textarea and submit button. The rationale behind this is that user only see the…
AP257
  • 509
  • 2
  • 7
  • 12
0
votes
1 answer

Why does django.contrib.comments load only default template

This is quite strange. As far as I knew, django always searches in local dir and then goes into Python installed lib dir. But this is not the case with django.contrib.comments. I am trying to load list.html from local template director of the…
Surya
  • 4,824
  • 6
  • 38
  • 63
0
votes
1 answer

How do I add my project to 'sys.path' on windows? (trying to use disqus_export.py)

I'm trying to use the command disqus_export.py from 'django-disqus' to export my comments from django.contrib.comments to disqus. When I use disqus_export.py in my outer project folder(where manage.py is) I get the return: Traceback (most recent…
Miles Bardan
  • 415
  • 3
  • 8
  • 17