def __call__(self, *args, **kwargs): from enferno.app import create_app with create_app(cfg).app_context(): return super(ContextTask, self).__call__(*args, **kwargs)
import os import warnings from flask.exthook import ExtDeprecationWarning warnings.simplefilter('ignore', ExtDeprecationWarning) from enferno.app import create_app from enferno.settings import DevConfig, ProdConfig CONFIG = ProdConfig if os.environ.get('FLASK_DEBUG') == '0' else DevConfig app = create_app(CONFIG)
import os from enferno.app import create_app from enferno.settings import DevConfig, ProdConfig CONFIG = ProdConfig if os.environ.get('FLASK_DEBUG') == '0' else DevConfig app = create_app(CONFIG)