Skip to content

Latest commit

 

History

History
71 lines (46 loc) · 1.73 KB

README.rst

File metadata and controls

71 lines (46 loc) · 1.73 KB

django-antispam

build status codecov pypi pep8 MIT

Various anti-spam protection tools for django applications.

See the documentation for more details.

Installation

The package can be installed using:

pip install django-antispam

Add the following settings:

INSTALLED_APPS += (
    'antispam',

  # 'antispam.akismet',
  # 'antispam.honeypot',
  # 'antispam.captcha',
)

# Akismet protection configuration (optional)

AKISMET_API_KEY = '<akismet api-key>'

AKISMET_SITE_URL = '<base site url>'

AKISMET_TEST_MODE = False

# reCAPTCHA default configuration (optional)

RECAPTCHA_SITEKEY = 'sitekey'

RECAPTCHA_SECRETKEY = 'secretkey'

RECAPTCHA_WIDGET = 'antispam.captcha.widgets.ReCAPTCHA'

RECAPTCHA_TIMEOUT = 5

RECAPTCHA_PASS_ON_ERROR = False

Contributing

If you have any valuable contribution, suggestion or idea, please let us know as well because we will look into it.

Pull requests are welcome too.