Form.errorsAccess the errors attribute to get a dictionary of error messages:

>>> f.errors{'sender': ['Enter a valid email address.'], 'subject': ['This field is required.']}In this dictionary, the keys are the field names, and the values are lists of Unicode strings representing the error messages. The error messages are stored in lists because a field can have multiple error messages.

Ok, i got the idea in principle - but what is the way to access error attribute? From the command prompt? I mean, I launch the website, i can printout debug messages on the webpage. There must be a better way to debug, right?