问题
Is there a library/app which will help to easily implement a client side validation in django ?
I found many form layout/display libraries like
- django-uni-form
- django-crispy-forms
etc but none of them have a client side validation. Can any one point to a good framework.
回答1:
Check out django-helpers (I am the author of the library). There is a form renderer app which will generate the form in a easily fancy bootstrap template and also implements client side validations for some validators using jquery validation plugin. Its still under development. There are no much docs but check the examples. Its easy to understand.
回答2:
Check Django-parsley
.
https://github.com/agiliq/Django-parsley
It uses parsleyjs.
http://parsleyjs.org/documentation.html
来源:https://stackoverflow.com/questions/16327065/django-forms-client-side-validation