Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Captcha for Mezzanine

branch: master
README.rst

mezzanine-captcha

Wat (not the one in Angkor)

Adds a Captcha field to Mezzanine's form builder.

Caveat

This is a hack which looks at the field types in your Mezzanine installation and infers a safe-enough ID number to use. If, by any reason at all, you were to make apps like this one, and get the IDs wrong, your forms will see weird side-effects.

A registry for custom fields in Mezzanine would be more worth-while!

Installation

Running setup.py should install django-simplecaptcha, which is required.

The application needs to be before mezzanine.forms in INSTALLED_APPS.

I use it between the django and mezzanine ones:

'django.contrib.staticfiles',
'captcha',      # \__ the new ones
'mezzacaptcha', # /
'mezzanine.boot',

You also need to configure urls.py in your Mezzanine app:

("^captcha/", include('captcha.urls')), # Slap it in before the catch-all
("^", include("mezzanine.urls")),

Run also migrations:

python manage.py migrate captcha

Usage

Now you can create captchas for your forms in admin!

For info on captcha configuration please see https://django-simple-captcha.readthedocs.org/en/latest/index.html

License

BSD. Whatever. Not gonna care too much.

Something went wrong with that request. Please try again.