Skip to content

Latest commit

 

History

History
59 lines (34 loc) · 1.36 KB

README.rst

File metadata and controls

59 lines (34 loc) · 1.36 KB

thecut-emailfield

Documentation Status

A Django email field which validates by checking for an MX record on the domain.

Documentation

The full documentation is at https://thecut-emailfield.readthedocs.org.

Quickstart

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()

Credits

See AUTHORS.rst.