hi In my application I am taking user given url strings.The user is likely to enter 'www.google.com' instead of 'http:// www.google.com' .When I try to open the url
import urllib2 page=urllib2.urlopen(url) can give a ValueError if the user fails to enter 'http'.How can this problem be addressed?do I have to prepend 'http' to every urlstring before trying to open it using urlopen? thanks jim -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.