views:

32

answers:

1

I have some troublesome form in my django app. Problem is that it doesn't validate. How can I check what is causing the problem ? I've tried the following :

form.data = {dictionary_with_data}
form.is_valid()
False
form._errors
{}
form.errors
{}
Form.non_field_errors()
[]

+1  A: 

try form = YourForm(data={dict_with_data})

crivateos