def create_app(): app = Flask(__name__) config.init_app(app) toolbar.init_app(app) site.init_app(app) #admin.init_app(app) return app
def create_app(): """Factory to create a Flask app based on factory pattern""" app = Flask(__name__) config.init_app(app) db.init_app(app) cli.init_app(app) toolbar.init_app(app) site.init_app(app) return app
def create_app(): app = Flask(__name__) config.init_app(app) db.init_app(app) auth.init_app(app) admin.init_app(app) cli.init_app(app) toolbar.init_app(app) site.init_app(app) hooks.init_app(app) return app
def create_app(): """factory principal""" app = Flask(__name__) site.init_app(app) return app
def create_app(): app = Flask(__name__) site.init_app(app) return app