Domains are also mapped to ip only by DNS

On Fri, Oct 7, 2016 at 9:06 PM, Tim Graham <timogra...@gmail.com> wrote:

> I'd take a look at the tests for the validator to see its expected inputs:
> https://github.com/django/django/blob/c60feb6999f83bfd1fdabff01f0dd4
> a26d72e158/tests/validators/tests.py#L48-L96
>
> By the way, there's a ticket to relax the validation and use whatever
> HTML5 validation uses:
> https://code.djangoproject.com/ticket/26423
>
> On Friday, October 7, 2016 at 7:31:06 AM UTC-4, Ilya Deynega wrote:
>>
>> Hello, I've encountered a strange behavior of
>> django.core.validators.EmailValidator, isn't it supposed to accept ip
>> address instead of domain? Like user...@1.1.1.1 instead instead of
>> user...@example.com. In fact, if you try to validate ip address as an
>> email domain part validation fails: 
>> EmailValidator().validate_domain_part('8.8.8.8')
>> is False. is it an error in validator or am I missing something?
>> Source code: https://docs.djangoproject.com/en/1.9/_modules/django/core/
>> validators/
>> Best regards, Ilya Deynega.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/a76b73b4-027d-4397-9c4d-c4811d63f2d7%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/a76b73b4-027d-4397-9c4d-c4811d63f2d7%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAAcansvbCJUPT%2BUM4By6wa3gUJfu9w67ws3excd7aGNDDLY80w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to