Introduction to Flask

Flask - Chapter 1

Flask Tutorial

We appreciate your patience while we actively develop and enhance our content for a better experience.

Sample Code
mkdir my-first-flask-app
cd my-first-flask-app
python -m venv venv
source venv/bin/activate
pip install Flask
from flask import Flask

app = Flask(__name__)

@app.route('/')
def hello():
    return 'Hello, World!'

if __name__ == '__main__':
    app.run()
python app.py