I am trying to make a simple flask app using putty but it is not working
here is my hello.py file:
from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello():
return 'Hello, World'
command I am running in putty (when in the file directory of hello.py)
pip install flask
python -c "import flask; print(flask.version)"
Output:1.1.2
export FLASK_APP=hello
export FLASK_ENV=development
flask run
when I go to the ip address: http://127.0.0.1:5000/
I get this enter image description here
also here is the link of the instruction I am following/did: https://www.digitalocean.com/community/tutorials/how-to-make-a-web-application-using-flask-in-python-3
if someone could let me know how to make it work would be great! thank you!