title: Can Django use "external" python scripts linked to other libraries (NumPy, RPy2...)
body: <p>I am new to the world of IT business (serious) development but I have in mind a business idea and still trying to vizualize how the overall infrastructure should work.</p>
  
  <p>I have done some few research for a good technology to deliver the solution. I am very inclined to use Python, MySql, Django (Apache) on the server side and some RIA on the client side (probably Flex) as I need some advanced visualization capabilities (especially after seeing the FLARE project).</p>
  
  <p>The application requires some "heaving lifting" on the numerical / statistical side and integrating R with Python (RPy2) + other like NumPy seems to be ideal.</p>
  
  <p>The thing i cannot get so far (certainly because i am a newbie) is the following:</p>
  
  <p>Can Django (one way or the other) execute an (external) python script / program which contain reference to the extra libraries (NumPy ...)?</p>
  
  <p>ex: user triggers an action to perform a statistical analysis, Django receives the request and should run some python code (using R, NumPy...) which uses the data in the database and store the results back in the DB. Django accesses the DB data and send it back to the client app to be displayed.</p>
  
  <p>Is this the right logic or am i completely off path?</p>
  
  <p>Many thanks in advance for your expertise.</p>