Bugs bugs bugs bugs bugs bugs

I love bugs
This commit is contained in:
Michał Gdula 2023-06-26 14:15:45 +01:00
parent 28d5f140c0
commit 377f20ce10
7 changed files with 34 additions and 12 deletions

View file

@ -1,9 +1,21 @@
import logging
from os import path
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
from flask_assets import Environment
from flask_caching import Cache
from flask_login import LoginManager
from .config import LOGS_DIR
logger = logging
logger.getLogger(path.join(LOGS_DIR, "server.log"))
logger.basicConfig(
level=logging.DEBUG,
format="%(asctime)s %(levelname)s %(name)s %(threadName)s : %(message)s",
)
db = SQLAlchemy()
migrate = Migrate()
assets = Environment()