2 artifacts
Tap to collapse details
Ensure Python 3.9+ is installed (download from python.org if needed).
Create project directory:
mkdir flask-learn cd flask-learn
python -m venv .venv # Windows: .venv\Scripts\activate . .venv/bin/activate
pip install Flask
hello.py
from flask import Flask app = Flask(__name__) @app.route('/') def hello(): return 'Hello, Flask!'
flask --app hello run
Visit http://127.0.0.1:5000/.
❌ Forgetting to activate virtual environment
→Run `. .venv/bin/activate` before pip install and flask run
❌ Using `python app.py` instead of `flask --app hello run`
→Use Flask CLI: `flask --app hello run --debug` for development
Tap to expand details
Spin up a personalized “learn Flask” plan you can save, check off, and return to anytime — unlimited on the free trial.
Codecademy
TestDriven.io
by Miguel Grinberg
Complete docs, quickstart, and tutorial
Step-by-step blog app guide
Source code, issues, and examples
Micro web framework for Python
Testing framework for Flask apps
WSGI server for production deployment