demgirlz/demweb/extensions.py
2021-05-20 00:31:31 +02:00

13 lines
270 B
Python

from flask_sqlalchemy import SQLAlchemy
from dictalchemy import make_class_dictable
import config
db = SQLAlchemy()
make_class_dictable(db.Model)
default_config = dict()
for key in dir(config):
if key.isupper():
default_config[key] = getattr(config, key)