what's with a "embedded webserver in a web application" in Python?
<p>CherryPy claims:</p>

<blockquote>
  <p>Your CherryPy powered web applications
  are in fact stand-alone Python
  applications embedding their own
  multi-threaded web server. You can
  deploy them anywhere you can run
  Python applications. Apache is not
  required, but it's possible to run a
  CherryPy application behind it (or
  lighttpd, or IIS). CherryPy
  applications run on Windows, Linux,
  Mac OS X and any other platform
  supporting Python.</p>
</blockquote>

<p>Having come from PHP and wanting to learn Python, I came upon <a href="http://stackoverflow.com/questions/213483/a-good-multithreaded-python-webserver">a thread here in SO</a> while looking for a webserver I can setup to start Python web development. However, after almost googling myself to death, I can't still find one. I came across entries like "Django has its own lightweight webserver" and the aforementioned Cherrypy.</p>

<p>What I am confused about is this :I was used to using XAMPP, where I have a web server, a database server and my application and I can't visualize the idea of a "web server inside the application itself". How do I connect to my database server then? How do I configure stuff like custom urls and directory protection (much like what I do in Apache)?</p>

<p>Thanks in advance guys!</p>
