Request Variables2:58 with Kenneth Love
Our views won't always know everything. Sometimes we'll need to provide them with new arguments to get them to work like we want. One of the most common ways is through the query string part of the URL.
global: A global is a variable that exists outside of the normal Python scopes. It is available everywhere.
query string: The part of a URL that comes after the
?. You'll notice that the information after this looks like keyword arguments.
request is a Flask global that represents the request that the client has made to your application. This contains things like cookies, the path, and, in our usage, the query string.
You need to sign up for Treehouse in order to download course files.Sign up