Monday, May 31, 2010

Re: Django form validations

Well, since validators were introduced with 1.2 you can't really use
them just right away with 1.1. So if zou want to use validators as in
1.2, you probably should update to 1.2 ;-) But there are still all the
other validation facilities available like clean_fieldname etc.

You can find all the details about the features available in 1.1 again
in the documentation:
http://docs.djangoproject.com/en/1.1/ref/forms/validation/

Ideally you want to do the validation on both sides since client-side
validation speeds up the interaction but this is not an alternative to
doing server-side validation since this is the place where it actually
matters for the state of your website. Client-side validation is just
an add-on ;-)

On Mon, May 31, 2010 at 6:10 PM, tazimk <tazimkolhar@gmail.com> wrote:
> yes, I have read that section but right know I am using Django version
> 1.1 which does not support some new built in validation functions .
> Also, where should valiadtions be done ideally server side or client
> side i.e using javascripts etc ?
>
> On May 31, 1:01 pm, Horst Gutmann <ho...@zerokspot.com> wrote:
>> Have you already readhttp://docs.djangoproject.com/en/1.2/ref/forms/validation/#ref-forms-...
>> ?
>>
>>
>>
>> On Mon, May 31, 2010 at 9:16 AM, tazimk <tazimkol...@gmail.com> wrote:
>> > How to use django custom validators to verify form fields data
>>
>> > --
>> > You received this message because you are subscribed to the Google Groups "Django users" group.
>> > To post to this group, send email to django-users@googlegroups.com.
>> > To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
>> > For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.- Hide quoted text -
>>
>> - Show quoted text -
>
> --
> You received this message because you are subscribed to the Google Groups "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
>
>

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment