Should I use the text from request.POST or form.cleaned_data
django, django-forms, django-views
Solution
While you could access request.POST directly , it is better to access form.cleaned_data. This data has not only been validated but will also be converted in to the relevant Python types for you.
Problem
It might sound like a trivial question, but this is quite a battle to me. For a form, and hit submit, should one uses `form.cleaned_data` to access the form data, or look up in `request.POST`? The only thing that people usually do with `request.POST` is look up the submit button. But if I created a submit button as a widget, I can also look it up in form.cleaned_data. The thing is, what about other form data? They are lookup-able in `request.POST` as well. Thanks.