2015-06-22 22:47:27 +02:00
|
|
|
"""
|
|
|
|
.. module: lemur.extensions
|
|
|
|
:copyright: (c) 2015 by Netflix Inc., see AUTHORS for more
|
|
|
|
:license: Apache, see LICENSE for more details.
|
|
|
|
"""
|
2016-05-05 21:52:08 +02:00
|
|
|
from flask_sqlalchemy import SQLAlchemy
|
2015-06-22 22:47:27 +02:00
|
|
|
db = SQLAlchemy()
|
|
|
|
|
2016-05-05 21:52:08 +02:00
|
|
|
from flask_migrate import Migrate
|
2015-06-22 22:47:27 +02:00
|
|
|
migrate = Migrate()
|
|
|
|
|
2016-05-05 21:52:08 +02:00
|
|
|
from flask_bcrypt import Bcrypt
|
2015-06-22 22:47:27 +02:00
|
|
|
bcrypt = Bcrypt()
|
|
|
|
|
2016-05-05 21:52:08 +02:00
|
|
|
from flask_principal import Principal
|
2017-08-17 18:24:35 +02:00
|
|
|
principal = Principal(use_sessions=False)
|
2015-07-23 22:46:54 +02:00
|
|
|
|
|
|
|
from flask_mail import Mail
|
|
|
|
smtp_mail = Mail()
|
2016-04-02 01:54:33 +02:00
|
|
|
|
|
|
|
from lemur.metrics import Metrics
|
|
|
|
metrics = Metrics()
|
2017-06-29 23:12:38 +02:00
|
|
|
|
|
|
|
from raven.contrib.flask import Sentry
|
|
|
|
sentry = Sentry()
|
2017-08-29 02:35:56 +02:00
|
|
|
|
|
|
|
from blinker import Namespace
|
|
|
|
signals = Namespace()
|
2018-04-11 00:55:02 +02:00
|
|
|
|
|
|
|
from flask_cors import CORS
|
|
|
|
cors = CORS()
|