Django: run a Unix command from with Django?

Posted by AP257 on Stack Overflow See other posts from Stack Overflow or by AP257
Published on 2010-03-24T23:30:23Z Indexed on 2010/03/24 23:33 UTC
Read the original article Hit count: 363

Filed under:

Sorry if this is a duplicate - couldn't find an answer by searching.

How can I run a Unix command from within a Django views file? I want to run a 'cp' command to copy a file that's just been uploaded.

Thanks in advance.

© Stack Overflow or respective owner

Related posts about django