← Flask learning pathFlask · Module 1 of 10
Hello Flask
Flask is a lightweight Python web framework you can learn in an afternoon.
📖 Key ideas
- Flask is a micro-framework: small core, add extensions as needed.
- pip install flask.
- app = Flask(__name__) and @app.route("/") define a page.
- Run with flask --app app run --debug.
- Great for APIs, prototypes and small to medium apps.
💡 Real-life example: Flask is an empty studio flat: you choose and add only the furniture you need.
FlaskMicro web framework for Python
@app.routeDecorator mapping a URL to a function
Debug modeAuto-reload and detailed errors
ExtensionAdd-on like Flask-SQLAlchemy