Hello World App


In [ ]:
from flask import Flask

In [ ]:
app = Flask(__name__)

In [ ]:
@app.route('/')
def hello_world():
    return 'Hello, World'

In [ ]:
app.run()

(for NIX)
\$ export FLASK_APP=hello.py (for Windows) \$ set FLASK_APP=hello.py
\$ flask run


In [ ]:
app.run(host='localhost', port='5001')

In [ ]: