Wednesday, December 29, 2010

to execute executable.py from view.py

I would like by using

#in views.py

<code>
def myfnc():
subprocess.Popen( '/polls/executable.py', executable='/usr/lib/
python')
<code>


execute executable.py from views.py function.

I am getting error that terminal is already taken. This is true -
django manage.py runserver keeps django webpages ON.

Is it possible to run paralelly python subprocess.Popen(....) ?

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