Changed modules to extensions
This commit is contained in:
10
ref-test/app/extensions.py
Normal file
10
ref-test/app/extensions.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from flask_bootstrap import Bootstrap
|
||||
bootstrap = Bootstrap()
|
||||
from flask_wtf.csrf import CSRFProtect
|
||||
csrf = CSRFProtect()
|
||||
from flask_sqlalchemy import SQLAlchemy
|
||||
db = SQLAlchemy()
|
||||
from flask_login import LoginManager
|
||||
login_manager = LoginManager()
|
||||
from flask_mail import Mail
|
||||
mail = Mail()
|
Reference in New Issue
Block a user