[Fixed]-Django Javascript form validation

3👍

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

http://eikke.com/django-validation-an-introduction/

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

1👍

I also thought about it and I found Django-parsley:
https://github.com/agiliq/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.

👤Royi

Leave a comment