Forms6:51 with Kenneth Love
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.
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.
You need to sign up for Treehouse in order to download course files.Sign up