Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
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.
New Terms
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: 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.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up