Following "The Flask Mega-Tutorial" on http://blog.miguelgrinberg.com/