title: How can I run my python script from within a web browser and process the results?
body: <p>I have a written a short python script which takes a text and does a few things with it. For example it has a function which counts the words in the text and returns the number.</p>
  
  <p>How can I run this script within django?
  I want to take that text from the view (textfield or something) and return a result back to the view.</p>
  
  <p>I want to use django only to give the script a webinterface. And it is only for me, maybe for a few people, not for a big audience. No deployment.</p>
  
  <p>Edit: When I first thought the solution would be "Django", I asked for it explicitly. That was of course a mistake because of my ignorance of WSGI. Unfortunately nobody advised me of this mistake.</p>