Spam protection tools for django applications.
Python
Switch branches/tags
Clone or download
mixkorshun Merge pull request #6 from jclgoodwin/master
Don't convert Akismet comment_date to timestamp. Fixes #5
Latest commit ad9ffbc Mar 22, 2018

README.rst

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.