Running the application

Open, the command prompt and change directories to the root folder (C:Projectschapter12). Start the local development server with the following command:

C:Projectschapter12>python manage.py runserver

The result should look like this:

Open a browser and go to: http://127.0.0.1:8000. The initial GET request will be redirected to the arenas view and processed, returning a random arena. Selecting another arena from the list and pushing the Find Data button will perform a POST request and will locate the selected arena. Each time an arena is selected, the text of the arena name will change, along with the map location and popup displayed. 

Here is an example of the results of a POST request:

Test the application by selecting different NBA arenas, and for extra credit, change the popup message. 

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset