Domains are also mapped to ip only by DNS
On Fri, Oct 7, 2016 at 9:06 PM, Tim Graham wrote:
> I'd take a look at the tests for the validator to see its expected inputs:
> https://github.com/django/django/blob/c60feb6999f83bfd1fdabff01f0dd4
>
Thanks for your reply, now it's clear that I've misunderstood the format of
an email with ip address instead of domain.
--
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
I'd take a look at the tests for the validator to see its expected inputs:
https://github.com/django/django/blob/c60feb6999f83bfd1fdabff01f0dd4a26d72e158/tests/validators/tests.py#L48-L96
By the way, there's a ticket to relax the validation and use whatever HTML5
validation uses:
Hello, I've encountered a strange behavior of
django.core.validators.EmailValidator, isn't it supposed to accept ip
address instead of domain? Like username@1.1.1.1 instead instead of
usern...@example.com. In fact, if you try to validate ip address as an
email domain part validation fails:
4 matches
Mail list logo