Re: Timeout for URLField?

2008-06-29 Thread Marcelo Ramos
2008/6/26 jabbercat <[EMAIL PROTECTED]>:

>
> Hello,
>
> does somebody know if there is a possibility to specify a timeout for
> the URLField? I'm just using a URLField, but if the URL is not correct
> the URLField needs a lot of time to response with an error.
>
>
No. Django's builtin validators has two results: validated or not. If you
put a timeout then you are not validating, you are "trying"  to validate
which is a completely different thing :-)

Why are you putting a validator if you allow it to be overriden. Just use a
CharField in that case.

Regards.

-- 
Marcelo Ramos

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Timeout for URLField?

2008-06-26 Thread jabbercat

Hello,

does somebody know if there is a possibility to specify a timeout for
the URLField? I'm just using a URLField, but if the URL is not correct
the URLField needs a lot of time to response with an error.

Thanks for help
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---