0% developed

Making Websites with Flask/Routing

From Wikibooks, open books for an open world
Jump to navigation Jump to search

What is Routing?[edit | edit source]

Routing basically means returning something to the user when they visit a specific URL on the site, which is called a route. In the Getting Started tutorial, we had two routes: the root route, /, and /hello.

Route Variables[edit | edit source]

Variable Rules[edit | edit source]

Trailing Slash[edit | edit source]

URL Building[edit | edit source]