Lyndsy Simon 6ec4245374 Adds support for resource URIs for MongoHQ and Mongolab.
Old-style MONGODB_* configuration is left in place, but
Flask-PyMongo at least uses the MONGO_URI in preference.

At some point in the future, we should remove the MONGODB_*
selectors if it is possible to do so.
2013-03-03 16:24:37 -06:00
2012-04-06 14:35:51 -04:00

Flask-Heroku
============

This is a simple Flask extension that sets configuration defaults for
Heroku-esque environment variables.

This is far from conclusive. Send a pull request to add a new service!


Usage
-----

Usage is pretty simple::

    from flask import Flask
    from flask.ext.heroku import Heroku

    app = Flask(__name__)
    heroku = Heroku(app)

Configuration is already set up::

    >>> app.config['SQLALCHEMY_DATABASE_URI']
    postgres://...

Alternatively, Flask's application factory pattern is supported::

    heroku = Heroku()
    # Then, later...
    heroku.init_app(app)

Install
-------

Installation is simple::

    $ pip install flask-heroku
S
Description
No description provided
Readme 57 KiB
Languages
Python 100%