mitsuhiko/flask-sqlalchemy — pull request #66 by kennethreitz (2011-12-09 23:09:46+00:00)
Title: Hint from DATABASE_URL environment variable.

This makes the `SQLALCHEMY_DATABASE_URI` config default to the `DATABASE_URL` environment variable, if it exists. If it doesn't exist, it defaults to `'sqlite://'`, as before.

This allows an environment to seamlessly connect to a database in an explicit way, while still complying to Flask's (and werkzeug's) configuration methodologies.