title: How do I create a server-side service in Python to handle HTTP requests from web and mobile apps?
body: <p>Let's say I want to create a service in Python running on a server to</p>
  
  <ol>
  <li>receive HTTP requests from web/mobile apps</li>
  <li>read data from a mid-size database</li>
  <li>compute and return results in JSON</li>
  </ol>
  
  <p>~~~~~~~~~~~~ Python API</p>
  
  <p>class BlackBox():</p>
  
  <pre><code>   def getResults(...):
     ....
  </code></pre>
  
  <p>~~~~~~~~~~~~</p>
  
  <p>My question is: <strong>What are other pieces I have to know?</strong></p>
  
  <p>I did some research and seems like people talked a lot about Django but I am not really sure if it would be a good choice. What are the pros and cons of Django?</p>