# Flask-Psycopg2

Psycopg2 support for Flask applications

## Quickstart

    from flask import Flask, render_template
    from flask.ext.psycopg2 import Psycopg2

    app = Flask(__name__)
    psql = Psycopg2(app)

    @app.route('/')
    def index():
        cur = pqsl.connection.cursor()
        cur.execute("SELECT * FROM users")
        users = cur.fetchall()
        cur.close()
        return render_template('index.html', users=users)


## More Info

* [Flask Documentation](http://flask.pocoo.org/docs/)
