Coverage for init.py : 100%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1"""
2All initializations like db = SQLAlchemy in this file
3"""
4import os
6from flask_login import LoginManager
7from flask_mailman import Mail
8from flask_marshmallow import Marshmallow
9from flask_migrate import Migrate
10from flask_sqlalchemy import SQLAlchemy
11from flask_wtf.csrf import CSRFProtect
13root_path = os.path.dirname(os.path.abspath(__file__)) # don't remove
14static_path = os.path.join(root_path, "static") # don't remove
15modules_path = os.path.join(root_path, "modules") # don't remove
16themes_path = os.path.join(static_path, "themes") # don't remove
18db = SQLAlchemy()
19ma = Marshmallow()
20login_manager = LoginManager()
21migrate = Migrate()
22mail = Mail()
23csrf = CSRFProtect()