- Version:
- 0.1
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 MathCaptchaModelForm
from myapp.models import Blog
class MyExistingForm(MathCaptchaModelForm): # instead of forms.ModelForm
#... extra fields here
class Meta:
model = Blog
Now you can be certain that the only users who create blogs are humans
Check out the example project for more practical use and tests.
Settings
Set the behavior of the math captcha interaction in your settings.py
MATH_CAPTCHA_NUMBERS
A list of numbers to randomly choose from when generating the questions. Defaults to [1,2,3,4,5].
MATH_CAPTCHA_OPERATORS
List of mathematical operators to use. Default is only add (+) and subtract (-). Available operators are: add (+), subtract (-), multiply (*), divide (/), and modulo (%)
MATH_CAPTCHA_QUESTION
Question that appears on forms as a label for math questions. By default it is 'Are you human?'
Metadata
Release files for django-math-captcha 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| django-math-captcha-0.1.tar.gz | 3.4 kB | Without provenance | Details |
Release files / django-math-captcha-0.1.tar.gz
| Download URL | django-math-captcha-0.1.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4caca72eca3056662d4c66b26a48769202d1ad93df8a5ae6c772092eb0e91b72
|
|
BLAKE2b-256 checksum How to use checksums |
ea38a5ab384eba3b745a86ec0792fcd4ff4b80195b8c7d09a2e4044eaad4c4b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-math-captcha 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.