Wiadomość napisana w dniu 2009-08-28, o godz. 08:10, przez Shadow: > Is it possible to execute code after sending the actual http response? > > For my website, users can optionally give an email address, and if > they do, the site sends a confirmation email. But I was thinking it's > more logical to spend time sending the email after the signup > confirmation page is sent to the user. Since sending the email doesn't > affect the http reponse at all? > > Is this possible?
Yes, but not in view function, you can use signals. See http://docs.djangoproject.com/en/dev/topics/signals/ . -- Artificial intelligence stands no chance against natural stupidity Jarek Zgoda, R&D, Redefine [email protected] --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

