Added documentation to the bp, babel_js, csrf, and db variables in the test site.
This commit is contained in:
parent
a17395b43e
commit
3a0f0873e2
@ -30,9 +30,13 @@ from flask_wtf import CSRFProtect
|
|||||||
from sqlalchemy import Column
|
from sqlalchemy import Column
|
||||||
|
|
||||||
bp: Blueprint = Blueprint("home", __name__)
|
bp: Blueprint = Blueprint("home", __name__)
|
||||||
|
"""The global blueprint."""
|
||||||
babel_js: BabelJS = BabelJS()
|
babel_js: BabelJS = BabelJS()
|
||||||
|
"""The Babel JavaScript instance."""
|
||||||
csrf: CSRFProtect = CSRFProtect()
|
csrf: CSRFProtect = CSRFProtect()
|
||||||
|
"""The CSRF protector."""
|
||||||
db: SQLAlchemy = SQLAlchemy()
|
db: SQLAlchemy = SQLAlchemy()
|
||||||
|
"""The database instance."""
|
||||||
|
|
||||||
|
|
||||||
def create_app(is_testing: bool = False) -> Flask:
|
def create_app(is_testing: bool = False) -> Flask:
|
||||||
|
Loading…
Reference in New Issue
Block a user