Monday, June 21, 2010

Re: Actions after HttpResponse rendered?

On 21/06/10 06:46, DaNmarner wrote:
> There's a similar question as mine on stackoverflow.com:
>
> http://stackoverflow.com/questions/1081340/how-do-you-do-something-after-you-render-the-view-django
>
> and there isn't a satisfactory answer there.
>
> Basically, how do I do some thing after a view returns the response?

Short answer: save yourself hassle and set up celery. The answers on
that page do talk in general terms about using message queues and
background processes, which is exactly what celery helps you do
concretely in a django context:

http://celeryproject.org/

--
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.

No comments:

Post a Comment