mirror of
https://github.com/kennethreitz/flask-heroku.git
synced 2026-06-05 06:56:14 +00:00
add support for SECRET_KEY
This commit is contained in:
@@ -16,6 +16,9 @@ class Heroku(object):
|
||||
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'))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user