<reponame>anngle/school
# -*- coding: utf-8 -*-
"""Extensions module. Each extension is initialized in the app factory located in app.py."""
from flask_bcrypt import Bcrypt
from flask_caching import Cache
from flask_debugtoolbar import DebugToolbarExtension
from flask_login import LoginManager
from flask_migrate import Migrate
from flask_sqlalchemy import SQLAlchemy
from flask_wtf.csrf import CSRFProtect
from flask_wechatpy import Wechat
from flask_bootstrap import Bootstrap
# from flask_mail import Mail
# from flask_apscheduler import APScheduler

import logging

bcrypt = Bcrypt()
csrf_protect = CSRFProtect()
login_manager = LoginManager()
db = SQLAlchemy()
migrate = Migrate()
cache = Cache()
debug_toolbar = DebugToolbarExtension()
wechat = Wechat()
bootstrap = Bootstrap()
# mail = Mail()
# scheduler = APScheduler()

login_manager.session_protection = 'basic'

#自动注册
login_manager.login_view = 'auth.autologin'
login_manager.login_message = u"请登录后访问该页面."
login_manager.refresh_view = 'auth.autologin'



# -*- coding: utf-8 -*-
"""Extensions module. Each extension is initialized in the app factory located in app.py."""
from flask_bcrypt import Bcrypt
from flask_caching import Cache
from flask_debugtoolbar import DebugToolbarExtension
from flask_login import LoginManager
from flask_migrate import Migrate
from flask_sqlalchemy import SQLAlchemy
from flask_wtf.csrf import CSRFProtect
from flask_wechatpy import Wechat
from flask_bootstrap import Bootstrap
# from flask_mail import Mail
# from flask_apscheduler import APScheduler

import logging

bcrypt = Bcrypt()
csrf_protect = CSRFProtect()
login_manager = LoginManager()
db = SQLAlchemy()
migrate = Migrate()
cache = Cache()
debug_toolbar = DebugToolbarExtension()
wechat = Wechat()
bootstrap = Bootstrap()
# mail = Mail()
# scheduler = APScheduler()

login_manager.session_protection = 'basic'

#自动注册
login_manager.login_view = 'auth.autologin'
login_manager.login_message = u"请登录后访问该页面."
login_manager.refresh_view = 'auth.autologin'
# -*- coding: utf-8 -*- Extensions module. Each extension is initialized in the app factory located in app.py. # from flask_mail import Mail # from flask_apscheduler import APScheduler # mail = Mail() # scheduler = APScheduler() #自动注册