-
-
Save Mahmud-Alam/83d8c9367acbd022f80c8d941e2e9721 to your computer and use it in GitHub Desktop.
Email validator module using Django
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.forms import EmailField | |
from django.core.exceptions import ValidationError | |
def isEmailAddressValid( email ): | |
try: | |
EmailField().clean(email) | |
return True | |
except ValidationError: | |
return False |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment