I try to run this simple flask hello word code:
app = Flask(__name__)
@app.route("/")
def hello_world():
return "<p>Hello, World!</p>"
but safari doesn’t want to connect to the url given by Flask (http://127.0.0.1:5000). I'm using MAC OS M1
CodePudding user response:
You should add at the bottom:
if name == "__main__":
app.run(debug=true)