Hi,
I need to do some cleanup after sending a response to the client. That
means I want to send response without returning a response object.
Something like-
def handler(request):
# ...
resp = HttpResponse(data)
# send response in some way (?)
# clean up, log, etc..
I know its unusual to do this, but is there a way to achieve it? If
not directly, then a way to setup the cleanup code to run after the
response has been sent will also do.
Thanks,
Ram
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---