Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jonashaag/django-indisposable

Disallow disposable email addresses in Django EmailField
https://github.com/jonashaag/django-indisposable

Last synced: 3 months ago
JSON representation

Disallow disposable email addresses in Django EmailField

Awesome Lists containing this project

README

        

# django-indisposable

Disallow disposable email addresses in Django EmailField.

A tiny Django wrapper around https://github.com/FGRibreau/mailchecker. Works with Python 2 and 3.

Denies disposable email addresses with an error message, for example: "*spam4.me email addresses are not accepted.*"

pip install django-indisposable

## Usage

import django_indisposable

# Models:
email_address = models.EmailField(..., validators=[django_indisposable.validate])

# Forms:
email_address = forms.EmailField(..., validators=[django_indisposable.validate])