예제 #1
0
    def init_app(app):
        Config.init_app(app)

        with app.app_context():
            from zadacha.factory import db
            from zadacha.models.user import User

            db.init_app(app)
            db.create_all()

            from ldclient.config import Config as __config
            ldclient.set_config(__config(offline=True))
예제 #2
0
    def init_app(app):
        Config.init_app(app)

        with app.app_context():
            from app.db import db
            from app.models import User

            db.init_app(app)
            db.create_all()

            from ldclient.config import Config as __config
            ldclient.set_config(__config(offline=True))