Flask is a python microframework providing URL routing, Jinja2 templating, from templating, and WSGI compliance, which defines how a web server communicates with web applications in Python.
Here is a layout of how to create an app in Flask in the context of a PostgreSQL Flask members site.