[Fixed]-Django Javascript form validation


I found this post in my bookmarks, but I haven’t tried it out myself yet.


it’s a small post that explains how to generate client side validation javascript from a Newform form (keeping you dry). some code is also available in a git repository


I also thought about it and I found Django-parsley:
It uses parsleyjs which is one the best js libraries for form validation.

I looked at it and I’m still not satisfied since it doesn’t give enough flexibility in the client side.
At the end of the day I think I will be WET (write everything twice) so I’ll have flexibility and I could do exactly what I want in the client side.


Leave a comment