![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
django-hcaptcha-field
Advanced tools
Django hCaptcha Field provides a simple way to protect your Django forms using hCaptcha.
Django hCaptcha Field provides a simple way to protect your Django forms using hCaptcha.
This is a fork of django-hcaptcha
.
Install using pip:
$ pip install django-hcaptcha-field
Add to INSTALLED_APPS
:
INSTALLED_APPS = [
# ...
'hcaptcha_field'
]
For development purposes no further configuration is required. By default, Django hCaptcha Field will use test keys.
For production, you'll need to obtain your hCaptcha site key and secret key and add them to you settings:
HCAPTCHA_SITEKEY = '<your sitekey>'
HCAPTCHA_SECRET = '<your secret key>'
You can also configure your hCaptcha widget globally (see all options):
HCAPTCHA_DEFAULT_CONFIG = {
'onload': 'name_of_js_function',
'render': 'explicit',
'theme': 'dark', # do not use data- prefix
'size': 'compact', # do not use data- prefix
# ...
}
If you need to, you can also override default hCaptcha endpoints:
HCAPTCHA_JS_API_URL = 'https://hcaptcha.com/1/api.js'
HCAPTCHA_VERIFY_URL = 'https://hcaptcha.com/siteverify'
Use proxies:
HCAPTCHA_PROXIES = {
'http': 'http://127.0.0.1:8000',
}
Change default verification timeout:
HCAPTCHA_TIMEOUT = 5
Simply add hCaptchaField to your forms:
from hcaptcha_field import hCaptchaField
class Form(forms.Form):
hcaptcha = hCaptchaField()
You can override the sitekey and other default configuration by passing additional arguments:
from hcaptcha_field import hCaptchaField
class Form(forms.Form):
hcaptcha = hCaptchaField(sitekey='...', theme='dark', size='compact')
The scripts and documentation in this project are released under the BSD-3-Clause License.
FAQs
Django hCaptcha Field provides a simple way to protect your Django forms using hCaptcha.
We found that django-hcaptcha-field demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.