Skip to content
This repository was archived by the owner on Aug 26, 2021. It is now read-only.

Commit 6b1525c

Browse files
committed
Merge pull request #25 from gmacon/secret_key
add support for SECRET_KEY
2 parents 7c88639 + 318ac8b commit 6b1525c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

flask_heroku.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ def __init__(self, app=None):
1616
self.init_app(app)
1717

1818
def init_app(self, app):
19+
# app.secret_key
20+
app.config.setdefault('SECRET_KEY', environ.get('SECRET_KEY'))
21+
1922
# SQL-Alchemy
2023
app.config.setdefault('SQLALCHEMY_DATABASE_URI', environ.get('DATABASE_URL'))
2124

0 commit comments

Comments
 (0)