• This repository has been archived on 26/Aug/2021
  • Stars
    star
    228
  • Rank 174,283 (Top 4 %)
  • Language
    Python
  • Created over 12 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

[DEPRECATED] Heroku environment variable configurations for Flask.

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