On 20 September 2011 21:36, Stone <phrac...@gmail.com> wrote: > Dear users, > > I have simple question which regards with running script from view.py. > <snip> > Is it possible to do that over subprocess command? > > Yes, you can run a script from within your view. Whether you *should* or not depends largely on how long the script might take to run. While it's running the Django instance serving the user's request and the user's browser will hang waiting for it to complete, so if it's going to take a while then you'd be better off running the script using something like Celery.
Cheers, Malcolm -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.