title: Simple Python server setup
body: <p>I am trying to learn python (coming from PHP), and want to set up the simplest web server so I can start coding.</p>
  
  <p>I found the integrated HTTP server, so I figured it should be the easiest way.</p>
  
  <pre><code>root@ubuntu:/var/py# python -m SimpleHTTPServer
  Serving HTTP on 0.0.0.0 port 8000 ...
  </code></pre>
  
  <p>The webserver is working, accessing <code>http://test.dev:8000/test.py</code> (thanks <code>/etc/hosts</code>) works - but shows me the contents of the file ( <code>print('Hello world!');</code> ), without interpreting it.</p>
  
  <p>How to properly set up the server / interpretor ?</p>