Can't run os.system command in Django?
        Posted  
        
            by danspants
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by danspants
        
        
        
        Published on 2010-04-30T00:43:46Z
        Indexed on 
            2010/04/30
            0:47 UTC
        
        
        Read the original article
        Hit count: 488
        
We have a Django app running on apache server (mod_python) on a windows machine which needs to call some r scripts. To do so it would be easiest to call r through os.system, however when django gets to the os.system command it freezes up. I've also tried subprocess with the same result.
We have a possibly related problem in that Django can only access the file system of the machine it's on, all network drives appear to be invisible to it, which is VERY frustrating.
Any ideas on both of these issues (I'm assuming it's the same limitation in both instances) would be most appreciated.
© Stack Overflow or respective owner