django-blockedemails

A Django reusable app that provides a form field, models and validators for blocking email addresses
Download

django-blockedemails Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Publisher Name:
  • Donald Stufft
  • Publisher web site:
  • http://github.com/dstufft/

django-blockedemails Tags


django-blockedemails Description

A Django reusable app that provides a form field, models and validators for blocking email addresses django-blockedemails is a reusable Django app that provides a form field, validators, and models that check if an email is being blocked, or is disposable/throwaway.InstallationYou can install django-blockedemails with pip by typing:pip install django-blockedemailsOr with easy_install by typing:easy_install django-blockedemailsOr manually by downloading a tarball and typing:python setup.py installSettingsdjango-blockedemails adds 3 settings Specifies an API_KEY to use with http://www.block-disposable-email.com/: BLOCK_DISPOSABLE_EMAIL_API_KEY = "" # Defaults to None which disables this validator Specifies a different url to use for the block-disposable-email.com api: BLOCK_DISPOSABLE_EMAIL_URL = "" # Will be string formated with a dictionary with api_key and domain Specifies if we should block an email if an exception occurs trying to check block-disposable-email.com: BLOCK_EMAIL_ON_URLERROR = False # Defaults to FalseUsage: To use the formfield simply import it and use it: from django import forms from blockedemails.fields import EmailField class ExampleForm(forms.Form): email = EmailField() Requirements: · Python


django-blockedemails Related Software