forms.EmailField

class EmailField(**kwargs) [source]

  • Default widget: EmailInput
  • Empty value: '' (an empty string)
  • Normalizes to: A Unicode object.
  • Validates that the given value is a valid email address, using a moderately complex regular expression.
  • Error message keys: required, invalid

Has two optional arguments for validation, max_length and min_length. If provided, these arguments ensure that the string is at most or at least the given length.

doc_Django
2016-10-09 18:36:44
Comments
Leave a Comment

Please login to continue.