Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/jonashaag/django-indisposable
- Owner: jonashaag
- License: isc
- Created: 2018-04-23T12:36:59.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-27T09:00:23.000Z (about 5 years ago)
- Last Synced: 2024-09-21T13:48:26.800Z (3 months ago)
- Language: Python
- Size: 4.88 KB
- Stars: 7
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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])