On 06/06/2012 01:28 PM, umit sethi wrote:
Hi,
I have a fabric task eg- def run_task():
#code here
From the command prompt I run this task: fab -c env.fabricrc run_task -
H hostnamr
How can I run this task from django?I click on a button on a webpage
in django app and it should do this. How can I achieve this?
Hi,
I don't know what are you trying to achieve, but you can just add a view
calling subprocess.Popen and run the command. But that's probably a
very bad solution (difficult to know without further information),
depending on what you want achieve, you might want to check Celery and
django-celery.
HTH
--
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.