In some of the examples last time, we had
Sure. We'll walk through some examples.
If the form uses POST, we don't need a way to process a filled-out form with GET. But we *always* need a way for the browser to GET a blank form. So, we can combine those in one view (handler) function; that's often convenient.
It allows the browser to GET an empty form and POST a filled-out form.
{% if msg %} <p>{{msg}}</p> {% endif %}in example_form_processing_one_route.py?
Sure. This adds a paragraph to the page with "msg" if "msg" was
supplied by the render_template
function.
refreshing re-sends the last request. If that last request was a POST...
Good question. Let's look at it: base.html
We'll search for "{{"
Glad you liked it!
Yes, it's part of Flask. No, I can't easily demo it, but I appreciate the question.