Issue
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
Solution
You should add at the bottom:
if name == "__main__":
app.run(debug=true)
Answered By - Kookies
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.