Skip to content

jbate/country-randomizr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

country-randomizr

A very simple Python web app to randomly pick a country and show a Google Map.

How's it work?

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.

Database

The app uses the GoogleAppEngine Datastore. Either manually create a new index or use the add option described below.

Options

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

About

A simple Python app to randomly show a country and accompanying map

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published