معرفی شرکت ها


django-hcaptcha-field-1.4.0


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Django hCaptcha Field provides a simple way to protect your Django forms using hCaptcha.
ویژگی مقدار
سیستم عامل -
نام فایل django-hcaptcha-field-1.4.0
نام django-hcaptcha-field
نسخه کتابخانه 1.4.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Ties Jan Hefting
ایمیل نویسنده hello@tiesjan.com
آدرس صفحه اصلی https://github.com/tiesjan/django-hcaptcha-field
آدرس اینترنتی https://pypi.org/project/django-hcaptcha-field/
مجوز BSD
# Django hCaptcha Field [![Python unit tests](https://github.com/tiesjan/django-hcaptcha-field/actions/workflows/run_python_unit_tests.yml/badge.svg)](https://github.com/tiesjan/django-hcaptcha-field/actions/workflows/run_python_unit_tests.yml) [![Linters](https://github.com/tiesjan/django-hcaptcha-field/actions/workflows/run_linters.yml/badge.svg)](https://github.com/tiesjan/django-hcaptcha-field/actions/workflows/run_linters.yml) Django hCaptcha Field provides a simple way to protect your Django forms using [hCaptcha](https://www.hcaptcha.com/). _This is a fork of [`django-hcaptcha`](https://github.com/AndrejZbin/django-hcaptcha)_. ## Installation 1. Install using pip: ```shell $ pip install django-hcaptcha-field ``` 2. Add to `INSTALLED_APPS`: ```python INSTALLED_APPS = [ # ... 'hcaptcha_field' ] ``` ## Configuration For development purposes no further configuration is required. By default, Django hCaptcha Field will use [test keys](https://docs.hcaptcha.com/#integration-testing-test-keys). For production, you'll need to obtain your hCaptcha site key and secret key and add them to you settings: ```python HCAPTCHA_SITEKEY = '<your sitekey>' HCAPTCHA_SECRET = '<your secret key>' ``` You can also configure your hCaptcha widget globally ([see all options](https://docs.hcaptcha.com/configuration)): ```python 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: ```python HCAPTCHA_JS_API_URL = 'https://hcaptcha.com/1/api.js' HCAPTCHA_VERIFY_URL = 'https://hcaptcha.com/siteverify' ``` Use proxies: ```python HCAPTCHA_PROXIES = { 'http': 'http://127.0.0.1:8000', } ``` Change default verification timeout: ```python HCAPTCHA_TIMEOUT = 5 ``` ## Usage Simply add hCaptchaField to your forms: ```python from hcaptcha_field import hCaptchaField class Form(forms.Form): hcaptcha = hCaptchaField() ``` You can override the sitekey and other default configuration by passing additional arguments: ```python from hcaptcha_field import hCaptchaField class Form(forms.Form): hcaptcha = hCaptchaField(sitekey='...', theme='dark', size='compact') ``` ## License The scripts and documentation in this project are released under the BSD-3-Clause License.


نیازمندی

مقدار نام
>=2.2 Django


زبان مورد نیاز

مقدار نام
>=3.5 Python


نحوه نصب


نصب پکیج whl django-hcaptcha-field-1.4.0:

    pip install django-hcaptcha-field-1.4.0.whl


نصب پکیج tar.gz django-hcaptcha-field-1.4.0:

    pip install django-hcaptcha-field-1.4.0.tar.gz