Use SECRET_KEY from environment variable (#232)
This commit is contained in:
parent
5985342b79
commit
c9c6529567
1 changed files with 1 additions and 1 deletions
|
@ -218,7 +218,7 @@ lm = LoginManager(app)
|
||||||
lm.init_app(app)
|
lm.init_app(app)
|
||||||
lm.login_view = 'login'
|
lm.login_view = 'login'
|
||||||
lm.anonymous_user = ub.Anonymous
|
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()
|
db.setup_db()
|
||||||
|
|
||||||
if config.config_log_level == logging.DEBUG:
|
if config.config_log_level == logging.DEBUG:
|
||||||
|
|
Loading…
Reference in a new issue