A very simple Python web app to randomly pick a country and show a Google Map.
This is created using the GoogleAppEngine and is written in Python. It is the code behind: http://james.thebatefamily.com/
Point the GoogleAppEngineLauncher at your folder and start up the server. Navigate to the root URL and a country will be randomly chosen. It will show the capital city and continent along with a full screen Google Map.
The app uses the GoogleAppEngine Datastore. Either manually create a new index or use the add
option described below.
The web app does take a couple of URL parameters so you can get fancy:
- c - force a particular country to be retrieved (e.g.
?country=Japan
) - add - when adding a new country append
add=true
and the relevant form will appear - country - when adding a country append a
country
name to pre-populate the country box in the form - capital - when adding a country append a
capital
name to pre-populate the capital box in the form - continent - when adding a country append a
continent
name to pre-populate the continent box in the form