Google News
logo
Flask - Interview Questions
How to start python flask app?
A simple Flask application looks like below
from flask import Flask
app = Flask(__name__)

@app.route('/')
def hello_world():
    return 'Hello, World!'
You can start the python flask app by running the below command
$ export FLASK_APP=hello.py
$ flask run
 * Running on http://127.0.0.1:5000/
Advertisement