from flask import Flask, render_template
import postgresql
db = postgresql.open('postgresql://user:password@localhost/user')
app = Flask(__name__)
@app.route('/')
def main():
return 'Hello world'
if __name__ == '__main__':
app.run(debug=True)