Skip to content

Commit

Permalink
Merge pull request heroku-python#25 from gmacon/secret_key
Browse files Browse the repository at this point in the history
add support for SECRET_KEY
  • Loading branch information
kennethreitz committed Feb 4, 2016
2 parents 7c88639 + 318ac8b commit 6b1525c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flask_heroku.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ def __init__(self, app=None):
self.init_app(app)

def init_app(self, app):
# app.secret_key
app.config.setdefault('SECRET_KEY', environ.get('SECRET_KEY'))

# SQL-Alchemy
app.config.setdefault('SQLALCHEMY_DATABASE_URI', environ.get('DATABASE_URL'))

Expand Down

0 comments on commit 6b1525c

Please sign in to comment.