Answers for "getting started with flask app"

8

flask how to run app

$ export FLASK_APP=hello.py
$ python -m flask run
 * Running on http://127.0.0.1:5000/
Posted by: Guest on April-03-2020
0

flask getting started

from flask import Flask

app = Flask(__name__)

@app.route("/")
def hello_world():
    return "<p>Hello, World!</p>"

if __name__ == '__main__':
    app.run(debug=True)
    
# To run in CMD
# python app.py
Posted by: Guest on January-21-2022

Code answers related to "getting started with flask app"

Python Answers by Framework

Browse Popular Code Answers by Language