Moved index.html to templates/index.html and also changed url_for(search_flickr) to url_for('search_flickr')