python - How to run a system command from a django web application? -


does knows of proven , simple way of running system command django application?

maybe using celery? ...

from research, it's problematic task, since involves permissions , insecure approaches problem. right?

edit: use case: delete files on remote machine.

thanks

here 1 approach: in django web application, write message queue (e.g., rabbitmq) containing information need. in separate system, read message queue , perform file actions. can indeed use celery setting system.


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -