Friday, November 12, 2010

Input welcome for comments app idea

Hi,

My new Django website is as good as finished, I only have to work on
the comments section. I know about the comments app that ships with
Django, but I don't really like it that much. I see three options for
comments on my website:

1) Use something like django-threadedcomments
2) Use Disqus or IntenseDebate
3) Implement my own COMMENTS_APP that extends the default Django
comments app

Option one doesn't make it a whole lot better. There is still no way
to register, login, do good spam checking, moderation, delete your own
comments, etc. At least not without a lot of work.

Option two, use Disqus, is what I used to do on my old website. Drop
in some javascript, and you're done. However, with django-blog-zinnia
running the blog, there are advantages when using Django's comments
app: they show up in the admin interface, you can get the most popular
blog entries (by comment count), no need for javascript just to show
how many comments an article got, etc. So that brings me to option
three:

Disqus offers a REST api. So in theory it should be possible to write
my own comments app that extends Django's default comments app. That
way you use all the power of Disqus, and Django's comment system still
uses the same functions to get comments, so all admin/zinnia functions
should still work. It just doesn't use your database to get the
comments, instead making the calls to Disqus.

Some problems I see:
- If you call the Disqus API from Python functions, it's not a-
synchronous. So displaying a template would be slower. Even the admin
would be slower, because the number of comments are shown in the blog
entries list. However, this could of course be cached, making this
almost a non-issue.
- The user needs to be logged in to Disqus to be able to post a
comment. It would be great if the comments came from my comments app,
but the form for posting a new comments came from Disqus (using the
standard javascript "api"). As far as I can see, this is not possible,
so logging in and getting the user's key could be difficult?

I am kind of stunned that an app like this doesn't already exists. Am
I missing something? Or is everyone okay with using the javascript way
of including Disqus? Also, I think this would be quite a lot of work
to make, so before I start hacking away, I am wondering if this really
doesn't already exists, and if I am overlooking other big problems.

Thanks in advance for your input,
Kevin

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate