def create_app(config=None, app_name=None): if app_name is None: app_name = DEFAULT_APP_NAME app = Flask(app_name) configure_app(app, config) configure_dirs(app) configure_logging(app) configure_errorhandlers(app) configure_template_filters(app) configure_context_processors(app) configure_blueprints(app) configure_db(app) return app
def create_app(config=None, app_name=None): if app_name is None: app_name = DEFAULT_APP_NAME app = Flask(app_name) configure_app(app, config) configure_dirs(app) configure_logging(app) configure_errorhandlers(app) configure_template_filters(app) configure_context_processors(app) configure_blueprints(app) configure_db(app) return app