Use SECRET_KEY from environment variable (#232)

This commit is contained in:
Jonathan Rehm 2017-07-11 09:35:55 -07:00 committed by Ozzie Isaacs
parent 5985342b79
commit c9c6529567

View File

@ -218,7 +218,7 @@ lm = LoginManager(app)
lm.init_app(app)
lm.login_view = 'login'
lm.anonymous_user = ub.Anonymous
app.secret_key = 'A0Zr98j/3yX R~XHH!jmN]LWX/,?RT'
app.secret_key = os.getenv('SECRET_KEY', 'A0Zr98j/3yX R~XHH!jmN]LWX/,?RT')
db.setup_db()
if config.config_log_level == logging.DEBUG: