from flask import Flask,send_from_directory app = Flask(__name__,static_url_path='',static_folder='build') @app.route('/') def walle_index(): return app.send_static_file('index.html') @app.route('/test') def walle_test(): return "test" if __name__ == '__main__': app.run(debug=True)