Skip to main content

A simple Django sweetcaptcha field/form app.

Project description

Django SweetCAptcha
================
**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/>`_

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-sweetcaptcha-0.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

django_sweetcaptcha-0.1-py2.py3-none-any.whl (6.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-sweetcaptcha-0.1.tar.gz.

File metadata

File hashes

Hashes for django-sweetcaptcha-0.1.tar.gz
Algorithm Hash digest
SHA256 d2a3dd2d6085e8cada25173b2350461758b6778cffcfdbde2f2b5e946267e790
MD5 6731835da117a24b24fcebb622b43b94
BLAKE2b-256 fed84a92e2f2dcbed8deb7cbc80e5e0bef7712c1fd44d60c20640555fbe9df4f

See more details on using hashes here.

File details

Details for the file django_sweetcaptcha-0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_sweetcaptcha-0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 29ee2f59d524f2f334d57428134665f6bcf2a3abc200b7ae63ba7e8747b20cb1
MD5 ac54c3c701fce4cce9b8875fc9da5831
BLAKE2b-256 ca8371910802f4c25f3129347862dd0ad58e3318cecdaebd165158cd724e974d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page