Created
March 1, 2015 20:03
-
-
Save flaugher/ec36ec940a31707ac683 to your computer and use it in GitHub Desktop.
Things to do if your Django form.is_valid() method fails
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Check that you inserted "request.POST" as an argument to your form when instantiating the form in your view after the POST. | |
- Add {{ form.errors }} {{ form.non_field_errors }} to the form or debug your view and print them from the debugger. | |
- Examine each form field in the debugger: myform['<fieldname>'].value() | |
- Make sure DEBUG = True so that you'll see any server errors. | |
- Check your server log. | |
- If all else fails, step through the is_valid() call. |
Helped me! Thanks!
Helpful. Many thanks!
Very Very helpful !!!! Many Thanks !!!!
Many thanks👍
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
excellent