django-recaptcha
Django recaptcha form field/widget app.
Decision gist · record as of 2026-08-14
Yes. Django reCAPTCHA is a mature, actively maintained package with low install friction, no known vulnerabilities, and permissive licensing. It is the standard way to integrate Google reCAPTCHA into Django forms and is suitable for any Django project needing bot protection. Install it if you need to protect forms from automated abuse.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a Google reCAPTCHA account and API keys (public and private) obtained from Google's reCAPTCHA console.
- Low install friction with a single runtime dependency on django.
- Actively maintained with recent commits and a stable release history since 2010; tested against Python 3.9–3.13 and Django 4.2–5.2.
License · maintenance · safety
BSD (permissive) — BSD permissive license allows commercial and private use with minimal restrictions; suitable for most projects.
last release 2025-03-28 (504 days) · last repo commit 2026-08-10 · 1,035 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 654,128 downloads/mo, #5,529 on PyPI
Alternatives
Verify before relying
pip install django-recaptcha
# In settings.py
INSTALLED_APPS = [..., 'django_recaptcha', ...]
RECAPTCHA_PUBLIC_KEY = 'your_public_key'
RECAPTCHA_PRIVATE_KEY = 'your_private_key'
# In forms.py
from django_recaptcha.fields import ReCaptchaField
class MyForm(forms.Form):
captcha = ReCaptchaField()- Whether the included modified reCAPTCHA client (client.py) is kept in sync with upstream recaptcha-client library updates.
- Performance impact of reCAPTCHA V3 score validation on form submission latency.
- Exact list of supported language codes beyond the documented es, fr, nl, pl, pt_BR, ru, zh_CN, zh_TW.
What it is and what it does
Django reCAPTCHA is a form field and widget integration for Google's reCAPTCHA service, protecting Django forms from automated bot submissions. It supports three reCAPTCHA versions: V2 Checkbox (user clicks a box), V2 Invisible (verification happens silently), and V3 (risk scoring based on user behavior). The package wraps Google's reCAPTCHA API and handles both client-side rendering and server-side validation, with configurable score thresholds for V3 and support for proxy settings and alternative domains.
You add it to a Django form by declaring a ReCaptchaField, configure your Google API keys in Django settings, and the widget renders the appropriate reCAPTCHA UI. It includes error translations for multiple languages and allows per-field key override and customization of widget appearance through data attributes and API parameters. The package has been maintained since 2010 and is actively developed.
Use it for
- Protect user registration and login forms from automated account creation and credential stuffing attacks.
- Prevent spam submissions in contact forms, comment sections, and feedback forms on public websites.
- Use reCAPTCHA V3 scoring to flag suspicious form submissions for review without interrupting legitimate users.
- Implement invisible reCAPTCHA on checkout or payment forms to reduce friction while maintaining bot protection.
- Customize reCAPTCHA appearance (theme, size, language) to match your site's design and user base.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Django reCAPTCHA is a mature, actively maintained package with low install friction, no known vulnerabilities, and permissive licensing. It is the standard way to integrate Google reCAPTCHA into Django forms and is suitable for any Django project needing bot protection. Install it if you need to protect forms from automated abuse.
Install
django-recaptcha on PyPI
Before you install
Low install friction with a single runtime dependency on django. Actively maintained with recent commits and a stable release history since 2010; tested against Python 3.9–3.13 and Django 4.2–5.2.
Requires a Google reCAPTCHA account and API keys (public and private) obtained from Google's reCAPTCHA console.
License in practice
BSD permissive license allows commercial and private use with minimal restrictions; suitable for most projects.
Quickstart
pip install django-recaptcha
# In settings.py
INSTALLED_APPS = [..., 'django_recaptcha', ...]
RECAPTCHA_PUBLIC_KEY = 'your_public_key'
RECAPTCHA_PRIVATE_KEY = 'your_private_key'
# In forms.py
from django_recaptcha.fields import ReCaptchaField
class MyForm(forms.Form):
captcha = ReCaptchaField()
Verify before relying
- Whether the included modified reCAPTCHA client (client.py) is kept in sync with upstream recaptcha-client library updates.
- Performance impact of reCAPTCHA V3 score validation on form submission latency.
- Exact list of supported language codes beyond the documented es, fr, nl, pl, pt_BR, ru, zh_CN, zh_TW.
Package facts
| License | BSD permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagedjango |
| Maintenance | Actively maintained 504 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 654,128 / month, #5,529 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableFramework :: DjangoFramework :: Django :: 4.2Framework :: Django :: 5.0Framework :: Django :: 5.1Framework :: Django :: 5.2Intended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Topic :: Internet :: WWW/HTTP :: Dynamic Content |
Evidence: django_recaptcha-4.1.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “django recaptcha form field”
- django-recaptchaIntegrates Google reCAPTCHA (V2 Checkbox, V2 Invisible, and V3) into…
- drf-recaptchaAdds reCAPTCHA v2 and v3 field validation to Django REST Framework…
- Flask-WTFFlask-WTF integrates WTForms with Flask to handle form rendering,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Dynamic Content packages
MarkupSafe provides a text object that escapes special characters so untrusted strings can be safely embedded in HTML and XML without injection attacks.
Jinja2 is a templating engine that renders dynamic content by combining templates with Python-like syntax and data, supporting template inheritance, macros, autoescaping, and sandboxed execution.
Soupsieve is a CSS selector library designed to work with Beautiful Soup 4 to select, match, and filter HTML and XML elements using modern CSS selectors from CSS level 1 through CSS level 4 specifications.
Install it if you use Beautiful Soup for HTML or XML parsing and want modern CSS selector support.
Werkzeug is a WSGI utility library providing request/response objects, URL routing, an interactive debugger, HTTP utilities, and a development server for building web applications.
Flask is a lightweight WSGI web application framework for building web applications in Python, from simple single-page sites to complex multi-route applications.
Mako compiles Python-embedded templates into Python modules for fast rendering, supporting layout inheritance, custom functions, and direct Python expressions within template syntax.
See also django-simple-captcha · drf-recaptcha · anticaptchaofficial · 2captcha-python · Flask-WTF · recognizer · capsolver · django-autocomplete-light · django-ace · django-map-widgets