Quick Start
Add color_captcha to INSTALLED_APPS
INSTALLED_APPS = [
...
'color_captcha',
...
]
Run collectstatic manage command
> python manage.py collectstatic
Add color_captcha.css file to your template
<link rel="stylesheet" href="{{ STATIC_URL }}color_captcha/css/color_captcha.css" type="text/css"/>
Add ColorCaptchaField into your form
from django import forms
from color_captcha.fields import ColorCaptchaField
class MyForm(forms.Form)
...
captcha = ColorCaptchaField(label='Choose a color')
...
Configuration
Feel free to configure your captcha with the following options.
CAPTCHA_COLORS
Default:
[ ('white', 'white'), ('blue', 'blue'), ('red', 'red'), ]An iterable of two-string-value tuples. The first value in tuple is a HEX color code (e.g. #FFF) or css color constant (e.g. white). The second value is a color name for user who has to solve the captcha.
CAPTCHA_ERROR_MESSAGES
Default:
{ 'wrong': 'Wrong answer', 'required': 'This field is required', 'internal': 'Internal error', }A dictionary with error messages for captcha field. You can override any of them.
Metadata
Release files for django-color-captcha 0.1.0
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 | Actions |
|---|---|---|---|---|
| django-color-captcha-0.1.0.tar.gz | 5.2 kB | Without provenance | Details for django-color-captcha-0.1.0.tar.gz |
Release files / django-color-captcha-0.1.0.tar.gz
| Download URL | django-color-captcha-0.1.0.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
549b3fcf560752498f3d10011acca2b95ae4914363ca46e1a74cc6b8b3a9f7bf
|
|
BLAKE2b-256 checksum How to use checksums |
9151db479c38313a499ad32eec581a857d44645625ec657a188c46802ba878a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-color-captcha 0.1.0
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.