You can read the essential parts of Python in a Nutshell for free online — although select pages are omitted at the publisher’s request to encourage you to buy the book — and the other only partially overlapping parts of the second edition are here . The chapters that I point out to you in both the first and second editions deal with sockets and network programming on the server side, they immediately cover network and web programming with an emphasis on the client side, and the next ones on CGI and alternatives, HTML, XML, etc.
Not covered, due to the age of books, is the best alternative to CGI, WSGI (can actually be deployed on top of CGI, but also works very efficiently with Apache, nginx, Google App Engine, etc.) and basically all modern web frameworks Python works well on top of WSGI - there are also very modular "not really frameworks" like werkzeug, which are fully WSGI-oriented).
To deliver a working Python ASAP web application, Django is probably the best and by far the most popular choice today; but the very aspects that make it such a high-performance environment (the sheer number of things that it does “secretly and magically” on your behalf) make it less useful for pure learning purposes than the more modular, less abstract, less magical framework, such as Paste, Pylons, Werkzeug, & c. It is very instructive to start with a simple WSGI and add useful components and middleware only gradually, since you understand why they are better than doing everything yourself "manually."
For more information about WSGI, see its own site , which is rich in useful links and documents.
Alex martelli
source share