On Wed, Jan 19, 2011 at 10:37 AM, galago <prog...@gmail.com> wrote: > Django 1.2.4, > Python 2.7 > All is coded as it should be. debugger shows error in python code as You > said. Maybe it will be fixed in the future. Exception is only when i put [ . > When i put [] all is ok :)
Yes, either a bare '[' or ']' in the URL hostname will trigger this error. Oddly, the URLValidator in django.core.validators should be catching the ValueError that is coming back from urllib2; Django should already be handling this. How are you trying to insert the value? Is this being handled through a ModelForm, or are you saving the model manually? Regards, Ian Clelland <clell...@gmail.com> -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.