Skip to main content

Aldryn Forms Recaptcha Plugin

This python module is open-source, available here: https://gitlab.com/what-digital/aldryn-forms-recaptcha-plugin/

Setup

pip install aldryn-forms-recaptcha-plugin

Add the following to your settings.py:

INSTALLED_APPS = [
    'aldryn_forms_recaptcha_plugin',
    'snowpenguin.django.recaptcha3',  # must be below the plugin
]
RECAPTCHA_PUBLIC_KEY = env('RECAPTCHA_PUBLIC_KEY', '123')
RECAPTCHA_PRIVATE_KEY = env('RECAPTCHA_PRIVATE_KEY', '123')
# set this to 0 (or 1) to deactivate (or always activate) the captcha protection
RECAPTCHA_SCORE_THRESHOLD = 0.85

If you're using bootstrap4, beware that django renders the form errors with class invalid-feedback, which is invisible in bs4.

Versioning and Packages

In order to release a new version of the Divio add-on:

  • Increment version number in addons-dev/aldryn-forms-recaptcha-plugin/aldryn_forms_recaptcha_plugin/__init__.py
  • divio addon validate
  • divio addon upload
  • Then git add, commit and tag with the version number and push to the repo
git add .
git commit -m "<message>"
git tag 0.0.XX
git push origin 0.0.19

Then, in order to release a new pypi version:

Development

  • Run pip install -e ../aldryn-forms-recaptcha-plugin/ in your demo project
  • You can open aldryn_forms_recaptcha_plugin in pycharm and set the python interpreter of the demo project to get proper django support and code completion.

Dependencies

  • aldryn_forms

Metadata

Release files for aldryn-forms-recaptcha-plugin 1.0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aldryn-forms-recaptcha-plugin 1.0.0.3
File Size Uploaded Provenance
aldryn-forms-recaptcha-plugin-1.0.0.3.tar.gz 5.8 kB Without provenance Details

Release files / aldryn-forms-recaptcha-plugin-1.0.0.3.tar.gz

Download URL aldryn-forms-recaptcha-plugin-1.0.0.3.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
cb5f866aa3f5dc7d75d9af40828e146b8e758130251770f907f3b4bfa1b6bc56
BLAKE2b-256 checksum
How to use checksums
4932980afbc587909576234b931896980db81fe2df17a894c5ae46d971f15ccd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Security for aldryn-forms-recaptcha-plugin 1.0.0.3

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page