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
Most web apps use forms for gathering data. Ours will be no different, so we need to figure out how to get to the form data easily and cleanly.
New Terms
url_for()
: This function, always available in templates but importable in your app, finds the URL for a given view function name.
redirect()
: This function returns an HTTP redirect to whatever URL is provided.
If you're not familiar with the pdb
library that we used, check out Write Better Python.
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