hello,
I try to redirect a user who comments a post on my blog to the same
page,
to do that, i need to use the signal : 'comment_was_posted'
i have put the code below in my blog 'models.py' to be sure it has
been loaded,
but when i post a new message, i'm not redirected to google ...
from django.contrib.comments.signals import comment_was_posted
from django.http import HttpResponseRedirect
def on_comment_was_posted(sender, comment, request, *args, **kwargs):
return HttpResponseRedirect('http://www.google.fr')
comment_was_posted.connect(on_comment_was_posted)
anybody got any ideas ?
thanks,
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---