Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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/>`_
Release History

Release History

This version
History Node

0.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django_sweetcaptcha-0.1-py2.py3-none-any.whl (6.2 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel May 10, 2015
django-sweetcaptcha-0.1.tar.gz (3.8 kB) Copy SHA256 Checksum SHA256 Source May 10, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting