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:
https://code.djangoproject.com/ticket/26423
On Friday, October 7, 2016 at 7:31:06 AM UTC-4, Ilya Deynega wrote:
-- 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:
https://code.djangoproject.com/ticket/26423
On Friday, October 7, 2016 at 7:31:06 AM UTC-4, Ilya Deynega wrote:
Best regards, Ilya Deynega.Hello, I've encountered a strange behavior of django.core.validators.Source code: https://docs.djangoproject.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? com/en/1.9/_modules/django/ core/validators/
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+unsubscribe@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.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment