def create_app(): app = Flask(__name__) app.debug = True app.autoreload = app.debug install_errorhandler(app) register_blueprints(app) monkey_patch_response_html() monkey_patch_response_json() return app