Skip to main content

Basics for Flasks

Flask basics are the core pieces of a first application: a Flask object, view functions bound to URLs with the route decorator, and the request and response objects. This is the entry point of the framework, since every other feature builds on how a request reaches a function and how a reply is returned.

Stage: Quickstart · Part of the Flask roadmap · Last reviewed 19 November 2026

What to learn in Basics

Basics interview questions

How does Flask decide which function handles a URL?

Flask keeps a URL map built from the route decorators. When a request arrives, the router matches the path and HTTP method against registered rules, extracts any variable parts such as an integer id, and calls the matching view function with those values as arguments.

What is the difference between request.args and request.form in Flask?

request.args holds the query string parameters from the URL, such as ?page=2. request.form holds fields from a submitted HTML form body, usually sent with POST. JSON bodies are read separately with request.get_json(). Choosing the right one depends on where the client puts the data.

Where Basics fits in the Flask roadmap

Basics belongs to the Quickstart stage (beginner level), which takes about 17 hours. Your first app.

Back to the full Flask roadmap