Skip to content

Instantly share code, notes, and snippets.

@imrekel
Created September 9, 2012 11:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save imrekel/3683902 to your computer and use it in GitHub Desktop.
Save imrekel/3683902 to your computer and use it in GitHub Desktop.
Email validator module using Django
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