A Django email field which validates by checking for an MX record on the domain.
The full documentation is at https://thecut-emailfield.readthedocs.org.
Install thecut-emailfield
using the installation instructions found in the project documentation.
An example models.py
:
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from django.db import models from thecut.emailfield.models import EmailField class EmailModel(models.Model): email = EmailField()
An example forms.py
:
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from django import forms from thecut.emailfield.forms import EmailField class EmailForm(forms.Form): email = EmailField()
See AUTHORS.rst
.