We could simply edit our Hello World application to add the desired functionality, but it's cleaner to start a new project. We'll create a new Git repository, a new Python file, a new .wsgi
file, and a new Apache configuration file. We'll do this for each of the projects in the book, which means that all three of the projects as well as the original Hello World application will be accessible from our web server.
Setting up is very similar to what we did for our Hello World application in Chapter 1, Hello, World! but we'll briefly go through the steps again as we don't have to repeat a lot of the configuration and installation, as follows:
Log in to your GitHub or BitBucket account and create a new repository called
headlines
. Take note of the URL you're given for this blank repository.On your local machine, create a new directory called
headlines
in your home directory or wherever you put thefirstapp
directory.Create a new file in this directory...