================
**Django SweetCaptcha form field/widget integration app.**
django-sweetcaptcha provides a form field to integrate the `sweetCaptcha <http://www.sweetcaptcha.com/>`_ service.
Installation
------------
#. Install or add ``django-sweetcaptcha`` to your Python path.
#. Add ``sweetcaptcha`` to your ``INSTALLED_APPS`` setting.
#. Register your sweetCaptcha account `here <http://www.sweetcaptcha.com/accounts/signup>`_.
#. Add ``SWEETCAPTCHA_APP_ID`` and ``SWEETCAPTCHA_APP_KEY`` settings to the project's ``settings.py`` file. These settings are provided by the previous step.
Usage
-----
Field
~~~~~
The quickest way to add sweetcaptcha to a form is to use the included ``SweetCaptchaField`` field type. A ``SweetCaptcha`` widget will be rendered with the field validating itself without any further action required from you. For example:
.. code-block:: python
from django import forms
from sweetcaptcha.fields import SweetCaptchaField
class FormWithCaptcha(forms.Form):
sweetcaptcha = SweetCaptchaField()
To allow for runtime specification of keys:
.. code-block:: python
sweetcaptcha = SweetCaptchaField(
app_id='your_app_id_here',
app_key='your_key_here'
)
If specified these parameters will be used instead the ones specified in your project settings.
Credits
-------
``client.py`` taken from `sweetcaptcha <https://pypi.python.org/pypi/sweetcaptcha>`_ by Jaime Wyant
.
Thanks to `sweetcaptcha <http://www.sweetcaptcha.com/>`_
Metadata
Release files for django-sweetcaptcha 0.1
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-sweetcaptcha-0.1.tar.gz | 3.8 kB | Without provenance | Details for django-sweetcaptcha-0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_sweetcaptcha-0.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for django_sweetcaptcha-0.1-py2.py3-none-any.whl |
Total release size: 9.9 kB
Release files / django-sweetcaptcha-0.1.tar.gz
| Download URL | django-sweetcaptcha-0.1.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d2a3dd2d6085e8cada25173b2350461758b6778cffcfdbde2f2b5e946267e790
|
|
BLAKE2b-256 checksum How to use checksums |
fed84a92e2f2dcbed8deb7cbc80e5e0bef7712c1fd44d60c20640555fbe9df4f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / django_sweetcaptcha-0.1-py2.py3-none-any.whl
| Download URL | django_sweetcaptcha-0.1-py2.py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
29ee2f59d524f2f334d57428134665f6bcf2a3abc200b7ae63ba7e8747b20cb1
|
|
BLAKE2b-256 checksum How to use checksums |
ca8371910802f4c25f3129347862dd0ad58e3318cecdaebd165158cd724e974d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-sweetcaptcha 0.1
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.