Click here to Skip to main content
15,067,832 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have no idea what happen to django ,
i am using django 1.8.6 and with python 3.5.2
i am working on form's and the form's validation like field validation work's well but i noticed the validation error for empty field was'nt rasing an error, by default django set required field to True , and so it should raise an error , but the funny part was i have two form, and what i tried was,

What I have tried:

i actually tried upgrading django to version 1.11 latest, and when i checked the form's it started working the empty field raised an validation error by default without touching to code ' and then i checked the second form which was still the same no empty validation error !....

the confusion is why django form automatically started working upon upgrading to 1.11 with the same python version 3.5.2 and with same code , and why the second form did'nt worked while the first one did !

if there's a compatibilty issue im facing then why custom clean_ method also does'nt work neither ' error_messages' attribute.
Updated 18-Sep-17 0:40am
Richard MacCutchan 18-Sep-17 7:33am
You should post this at the Django website.
Andriken 18-Sep-17 7:43am
maybe , lastly im giving it a try by re-creating virtual env and installing right compatible version as best as i can according to django offical guide on compatible django and python version.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900