python-gallery/gallery/extensions.py
Michał 7c553e99b8 Switch to Flask-SQLAlchemy
Add FLask-Migrate for next step in the Migration 😉
2023-04-09 19:12:35 +00:00

14 lines
413 B
Python

from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
from flask_login import LoginManager
from flask_assets import Environment
from flask_compress import Compress
from flask_caching import Cache
db = SQLAlchemy()
migrate = Migrate()
login_manager = LoginManager()
assets = Environment()
compress = Compress()
cache = Cache(config={"CACHE_TYPE": "SimpleCache", "CACHE_DEFAULT_TIMEOUT": 300})