Integrations

Django integration

A validator, a form field and a model field for Django that fail an email address that cannot receive mail. They check each address once, and let a real person sign up when the API cannot answer in time.

  • Status: Setup guide
  • A Python package for your project

A form fieldforms.py

Python
from django import forms
from email_validation_django import DeliverableEmailFormField

class SignupForm(forms.Form):
    email = DeliverableEmailFormField()

At a glance.

Status
Setup guide. Not listed on a marketplace yet: you set it up yourself in a few steps, below and in the full guide.
For
Django developers who want sign-up, contact and checkout forms, and models saved through full_clean(), to refuse the addresses that will bounce.
You need
Django 4.2 or newer on Python 3.10 or newer, the package file from the guide, and an API key made for it, with a daily credit cap, set in your environment as EV_API_KEY.
Costs
1 credit = 1 validated address, as with any API request. Free: unknown results, API errors, malformed addresses and test addresses on sandbox.email-validation.org.
Full guide
Read the full setup guide

Typical uses.

Set it up. 5 steps.

The short version of the full setup guide, which stays the reference when a step does not match what you see.

  1. Download the package

    The package is not on PyPI yet: download the file from the guide, and commit it to your repository if you want it in your requirements.

  2. Install it

    Install the file into your project’s environment with pip install and its path; pip also installs Django and the Python client library. Nothing goes in INSTALLED_APPS.

  3. Set your key

    Create an API key with Validate addresses and a daily credit cap, and set it in your environment as EV_API_KEY, never in code.

  4. Use a field

    Use DeliverableEmailFormField() for a form’s email field, or DeliverableEmailField() for a model’s.

  5. Try it

    Submit accepted@sandbox.email-validation.org, which passes, and no_mailbox@sandbox.email-validation.org, which fails. Test addresses cost nothing.

Good to know.

Updated · Maintained by the email-validation.org team