In article <637028a0-58b9-4912-896d-2b17e1341...@q16g2000yqg.googlegroups.com>,
joeygartin  <joeygar...@gmail.com> wrote:
>
>I am working with Django and I have to send off a number of emails
>after a person has filled out a form.  What I want is to make a call
>that goes off to form and send the emails and redirect the user to
>another view.  I have this working now, but I noticed it is a bit
>slow.  So I was hoping there was a way to spin off the process and
>redirect the user to the page while the emails are being formed and
>sent vs. making the page hang while it is done.

The simplest solution is to create an external program and use the
subprocess module to call it.  You could also use fork() directly, but
that's more complicated.
-- 
Aahz (a...@pythoncraft.com)           <*>         http://www.pythoncraft.com/

"...string iteration isn't about treating strings as sequences of strings, 
it's about treating strings as sequences of characters.  The fact that
characters are also strings is the reason we have problems, but characters 
are strings for other good reasons."  --Aahz
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to