django-simple-captchaA very simple, yet powerful, Django captcha application | |
Download |
django-simple-captcha Ranking & Summary
Advertisement
- License:
- MIT/X Consortium Lic...
- Price:
- FREE
- Publisher Name:
- Marco Bonetti
- Publisher web site:
- http://gregarius.net
django-simple-captcha Tags
django-simple-captcha Description
A very simple, yet powerful, Django captcha application django-simple-captcha is an extremely simple, yet highly customizable Django plugin to add captcha images to any Django form.Usage:Sample view:from django import formsfrom captcha.fields import CaptchaFieldfrom django.shortcuts import render_to_responseclass CaptchaTestForm(forms.Form): myfield = AnyOtherField() captcha = CaptchaField()"""# or, as a ModelForm:class CaptchaTestModelForm(forms.ModelForm): captcha = CaptchaField() class Meta: model = MyModel"""def home(request): if request.POST: form = CaptchaTestForm(request.POST) # Validate the form: the captcha field will automatically # check the input if form.is_valid(): human = True else: form = CaptchaTestForm() return render_to_response('base.html',locals())Installation: 1. Download the 'captcha' application and put it anywhere in your Python path 2. Add 'captcha' to the INSTALLED_APPS in your settings.py 3. Run manage.py syncdb to create the required database tables 4. Add an entry to your urls.py: urlpatterns += patterns('', url(r'^captcha/', include('captcha.urls')), ) Here are some key features of "django-simple-captcha": · Very simple to setup and deploy, yet very configurable · Can use custom challenges (e.g. random chars, simple maths, dictionary word, ...) · Custom generators, noise and filter functions alter the look of the generated image · Supports text-to-speech audio output of the challenge text, for improved accessibility Requirements: · Python · Django · A fairly recent version of the Python Imaging Library (PIL) compiled with FreeType support · Flite is required for text-to-speech (audio) output, but not mandatory
django-simple-captcha Related Software