|
|
@ -3,7 +3,7 @@ from flask import Flask |
|
|
|
from flask_sqlalchemy import SQLAlchemy |
|
|
|
from flask_login import LoginManager, login_manager |
|
|
|
from flask_bootstrap import Bootstrap |
|
|
|
from flask_simpleldap import LDAP |
|
|
|
from flask_cachebuster import CacheBuster |
|
|
|
|
|
|
|
import os |
|
|
|
|
|
|
@ -35,12 +35,15 @@ app.config['REMEMBER_COOKIE_DOMAIN'] = os.environ.get('COOKIE_DOMAIN') |
|
|
|
|
|
|
|
db = SQLAlchemy(app) |
|
|
|
|
|
|
|
ldap = LDAP(app) |
|
|
|
|
|
|
|
login_manager = LoginManager(app) |
|
|
|
login_manager.init_app(app) |
|
|
|
login_manager.login_view = 'auth.login' |
|
|
|
|
|
|
|
config = {"extensions": [".js", ".css", ".csv"], "hash_size": 5} |
|
|
|
|
|
|
|
cache_buster = CacheBuster(config=config) |
|
|
|
cache_buster.init_app(app) |
|
|
|
|
|
|
|
from accounts.auth.views import auth |
|
|
|
app.register_blueprint(auth) |
|
|
|
|