Created
September 9, 2012 11:29
-
-
Save imrekel/3683902 to your computer and use it in GitHub Desktop.
Email validator module using Django
This file contains hidden or 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