skip to navigation
skip to content

Not Logged In

django-yacaptcha 0.0.6

Simple captcha with Yandex API.

Django YaCaptcha

Django YaCaptcha - Yandex Captcha (cleanweb) form field/widget integration app.


Quick start

1. Add "yacaptcha" to your INSTALLED_APPS setting like this:

2. Get the API key and add to your project settings:
YACAPTCHA_KEY = 'your_api_key'

3. Add YaCaptchaField in your form like this::
from yacaptcha.fields import YaCaptchaField
class TestForm(forms.Form):
name = forms.CharField()
captcha = YaCaptchaField()
4. Add form field widget template
You may create your own template for field widget. For this add in project settings:
YACAPTCHA_WIDGET_TEMPLATE = 'path_to_widget.html'
Or use default widget.html from package django-yacaptcha/templates/yacaptcha/widget.html

5. If you use django-registration, you may use registartion backend with yacaptcha field like this:
url(r'^accounts/', include('yacaptcha.backends.default.urls')), # yacaptcha backend for registration form
(r'^accounts/', include('registration.backends.default.urls')),
File Type Py Version Uploaded on Size
django-yacaptcha-0.0.6.tar.gz (md5) Source 2013-05-03 4KB
  • Downloads (All Versions):
  • 24 downloads in the last day
  • 67 downloads in the last week
  • 474 downloads in the last month