Flask-ZODB is a Flask extension that provides transparent and scalable persistence of Python objects for Flask applications. Use it as your database or as a complement to another database - for example PostgreSQL where you need to perform rich queries and ZODB where you need structured data and mapping to and from Python types is inconvenient.
app = Flask(__name__)
db = ZODB(app)
if 'entries' not in db:
db['entries'] = List()
return render_template('show_entries.html', entries=db['entries'])
flash('New entry was successfully posted')