Is it possible to run ubuntu terminal commands using DJango
<p>I am designing a simple website using DJango and my database is HBase. In some Part I need to save some files on HDFS, for example video file, and have it's URI. But my problem is I couldn't find any API for accessing HDFS through DJango so I decided to use ubuntu terminal command to upload and download data on HDFS. Now I want to know is there any way to run terminal command using Django or any other way to access HDFS API through Django?</p>

<p>have django make a call to a subprocess like the one below.  each string in the command should be a string in a list.</p>

<pre><code>import subprocess
subprocess.call(["ls", "-l"])
</code></pre>

python django hadoop hbase hdfs