django-math-captcha

Simple, secure math captcha for Django forms
Download

django-math-captcha Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Price:
  • FREE
  • Publisher Name:
  • Justin Quick
  • Publisher web site:
  • http://code.google.com/u/justquick/

django-math-captcha Tags


django-math-captcha Description

Simple, secure math captcha for Django forms django-math-captcha is an easy way to add mathematical captcha verification to your already existing forms. It asks you a simple math question (eg '1 + 2 =') and validates the form if your response is correct. All you have to do is subclass either MathCaptchaForm or MathCaptchaModelForm in your own forms.Use it in your forms:from math_captcha import MathCaptchaModelFormfrom myapp.models import Blogclass MyExistingForm(MathCaptchaModelForm): # instead of forms.ModelForm #... extra fields here class Meta: model = BlogNow you can be certain that the only users who create blogs are humansCheck out the example project for more practical use and tests.SettingsSet the behavior of the math captcha interaction in your settings.pyMATH_CAPTCHA_NUMBERSA list of numbers to randomly choose from when generating the questions. Defaults to .MATH_CAPTCHA_OPERATORSList of mathematical operators to use. Default is only add (+) and subtract (-). Available operators are: add (+), subtract (-), multiply (*), divide (/), and modulo (%)MATH_CAPTCHA_QUESTIONQuestion that appears on forms as a label for math questions. By default it is 'Are you human?' Requirements: · Django · Python


django-math-captcha Related Software