Is there any option where URLField validates even if user do not enter 
http://. I don't want my users to enter http:// for the URL.
The code is
blogurl = forms.URLField(verify_exist=True)

but if I enter url without http, its not validating it.
www.google.com returns false
http://www.google.com return true

Is there anyway, I can force URLField validation even if user do not 
enter http://

I used clean_data but its not working

def clean_blogurl(self):
    if self.clean_data.get('blogurl'):
       blogurl = "http://"; + self.clean_data['blogurl']
       return blogurl


Thanks


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to