Python Django How to deal with cases where Japanese carrier emails are played by Email Validator

# coding: utf-8
import re
from django.core.validators import EmailValidator


class JapaneseEmailValidator(EmailValidator):
    user_regex = re.compile(
        r"(^[-.!#$%&'*+/=?^_`{}|~0-9A-Z]+$"  # dot-atom (\.[-!#$%&'*+/=?^_`{}|~0-9A-Z]+)*Omitted
        r'|^"([\001-\010\013\014\016-\037!#-\[\]-\177]|\\[\001-\011\013\014\016-\177])*"$)',  # quoted-string
        re.IGNORECASE)


Recommended Posts

Python Django How to deal with cases where Japanese carrier emails are played by Email Validator
How to display python Japanese with lolipop
How to enter Japanese with Python curses
[Python] How to deal with module errors
How to deal with old Python versions in Cloud9 made by others
[Python] How to handle Japanese characters with openCV
[Python] How to deal with pandas read_html read error
Send Japanese email with Python3
How to deal with python installation error in pyenv (BUILD FAILED)
How to not escape Japanese when dealing with json in python
How to deal with "You have multiple authentication backends configured ..." (Django)
How to deal with errors when installing Python and pip with choco
Python: How to use async with
How to deal with imbalanced data
How to deal with imbalanced data
How to get started with Python
How to deal with DistributionNotFound errors
How to get started with Django
How to use FTP with Python
How to calculate date with python
How to handle Japanese in Python
How to authenticate with Django Part 2
How to authenticate with Django Part 3
How to deal with SSL error when connecting to S3 with boto of Python
How to deal with garbled characters in json of Django REST Framework
How to deal with the problem that Japanese characters are garbled when outputting logs using JSON log formatter
How to do arithmetic with Django template
HTML email with image to send with python
How to work with BigQuery in Python
How to deal with enum compatibility errors
How to use Japanese with NLTK plot
How to do portmanteau test with python
How to install python3 with docker centos