Forums

Flask POST syntax

So I am writing some basic python in Flask to process some information send to the application URL as a POST. It's pretty simple and I know it should use the requests library.

But between all the frameworks I can't get the syntax right. Let's say the POST data contains a field called "subject" and I want to capture that.

Is it subject = request.post('subject') or something else. It's been all day and I just can't get it finalized.

Kris

This section of the Flask quickstart should answer your question - it's the form attribute.