from __future__ import absolute_import, division, print_function from wqflask import app from flask import render_template, request from wqflask import search_results from pprint import pformat as pf @app.route("/") def index_page(): return render_template("index_page.html") @app.route("/search") def search(): print("request is:", request.args) the_search = search_results.SearchResultPage(request.args) print("At rendering...") print(pf(the_search.__dict__)) print("yack:", the_search.database[0].genHTML()) return render_template("search_result_page.html", **the_search.__dict__)