Now that we have the necessary building blocks in place, we can start developing our application. Let's start with a very simple application:
Go to the directory where you unpacked the example code.
Go to the directory
Chapter 2
.Double-click the file
nocontent.py
, a text window will open (alternatively you can enter the commandpython nocontent.py
from the command line):Open your favorite browser and enter
http://localhost:8080
in the address bar. You will be presented with a rather dull page:Tip
If your browser is unable to connect to
http://localhost:8080
, this might be because your local name server is not configured to resolve the namelocalhost
. If you do not have the means to correct this, it is equally valid, though less convenient, to enterhttp://127.0.0.1:8080
in the address bar of your browser.It is also possible that the default port that the application will be listening on (
8080
) is already in use, in which case, Python will raise...