removed deprecation warning in Flask-Login initialization
This commit is contained in:
parent
667f216b9c
commit
7717eb1656
|
@ -10,7 +10,7 @@ app = Flask(__name__)
|
||||||
app.config.from_object('config')
|
app.config.from_object('config')
|
||||||
db = SQLAlchemy(app)
|
db = SQLAlchemy(app)
|
||||||
lm = LoginManager()
|
lm = LoginManager()
|
||||||
lm.setup_app(app)
|
lm.init_app(app)
|
||||||
lm.login_view = 'login'
|
lm.login_view = 'login'
|
||||||
oid = OpenID(app, os.path.join(basedir, 'tmp'))
|
oid = OpenID(app, os.path.join(basedir, 'tmp'))
|
||||||
mail = Mail(app)
|
mail = Mail(app)
|
||||||
|
|
Loading…
Reference in New Issue