On 12/12/06, Jeremy Dunck <[EMAIL PROTECTED]> wrote:
> On 12/12/06, Rob Hudson <[EMAIL PROTECTED]> wrote:
> > Is there a way to make this happen *after* all the content was sent to
> > the user and the HTML tag closed?
>
> I don't think so, since the request/response cycle is how Django
> works, and even if you did do it after the response was sent, you'd
> still delay that process from answering the next request.

You could listen for the 'request_finished' signal, which is the last
(built-in) signal fired during the request/response cycle. But you'd
need to be very careful about timing (and I don't know off the top of
my head how pydispatcher handles that), because Django listens for
that signal to know when to close database connections.


-- 
"May the forces of evil become confused on the way to your house."
  -- George Carlin

--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Django developers" 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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to