removed deprecation warning in Flask-Login initialization

This commit is contained in:
Miguel Grinberg 2012-12-31 12:05:07 -08:00
parent 667f216b9c
commit 7717eb1656
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ app = Flask(__name__)
app.config.from_object('config')
db = SQLAlchemy(app)
lm = LoginManager()
lm.setup_app(app)
lm.init_app(app)
lm.login_view = 'login'
oid = OpenID(app, os.path.join(basedir, 'tmp'))
mail = Mail(app)