@app.after_request
def after_request(response):
    g.db.close()
    return response
Closes the database again at the end of the request.
dataset/ETHPy150Open dag/flask-genshi/examples/flaskr/flaskr.py/after_request