I have a need for a subclass of the URL form field, in a slightly woolly way.
I need it to only allow addresses which are *public*; that is, addresses which will have the same behaviour no matter where I am on the internet. (Yes, I know strictly you can never guarantee this for any number of reasons, but there are obvious cases where it won't be true) To a first approximation at least, this involves excluding localhost, and any IP addresses in the private ranges. It would also be nice if it also excluded any addresses which don't have valid global TLD's (eg intranet addresses like hostname.private should be excluded) I've also got the constraint that I'm definitely not interested in verify_exists - I want to be able to accept addresses which might 404 at the time of form validation. I know Django doesn't provide this by default, and I know how I would start doing it myself - I was just wondering if anyone else had faced similar issues and done some of the work for me ;-) Thanks, Toby --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---