一个简单的Django SweetCaptcha字段/表单应用程序。
django-sweetcaptcha的Python项目详细描述
Django SweetCaptcha
==
**Django SweetCaptcha表单域/小部件集成应用程序。**
----
在python路径中安装或添加“django sweetcaptcha”。将“sweetcaptcha”添加到“已安装的应用程序”设置中。
。在这里注册您的SweetCaptcha帐户<;http://www.sweetCaptcha.com/accounts/signup>;`.
。在项目的“settings.py”文件中添加“sweetcaptcha_app_id”和“sweetcaptcha_app_key”设置。这些设置由上一步提供。
usage
----
field
~~~~
将sweetCaptcha添加到表单的最快方法是使用包含的“sweetCaptchField”字段类型。将呈现一个“sweetCaptcha”小部件,该小部件将使用字段验证自身,而无需您执行任何进一步的操作。例如:
…代码块::python
from django import forms
from sweetcaptcha.fields import sweetcaptchfield
with captcha(forms.form):
sweetcaptcha=sweetcaptchfield()
允许键的运行时规范:
。代码块::python
sweetcaptcha=sweetcaptchfield(
app戋id='your戋app戋id戋here',
app戋key='your戋key戋here'
https://pypi.python.org/pypi/sweetcaptcha>;``作者:Jaime Wyant
。
感谢'sweetcaptcha<;http://www.sweetcaptcha.com/>;'`_
==
**Django SweetCaptcha表单域/小部件集成应用程序。**
----
在python路径中安装或添加“django sweetcaptcha”。将“sweetcaptcha”添加到“已安装的应用程序”设置中。
。在这里注册您的SweetCaptcha帐户<;http://www.sweetCaptcha.com/accounts/signup>;`.
。在项目的“settings.py”文件中添加“sweetcaptcha_app_id”和“sweetcaptcha_app_key”设置。这些设置由上一步提供。
usage
----
field
~~~~
将sweetCaptcha添加到表单的最快方法是使用包含的“sweetCaptchField”字段类型。将呈现一个“sweetCaptcha”小部件,该小部件将使用字段验证自身,而无需您执行任何进一步的操作。例如:
…代码块::python
from django import forms
from sweetcaptcha.fields import sweetcaptchfield
with captcha(forms.form):
sweetcaptcha=sweetcaptchfield()
允许键的运行时规范:
。代码块::python
sweetcaptcha=sweetcaptchfield(
app戋id='your戋app戋id戋here',
app戋key='your戋key戋here'
https://pypi.python.org/pypi/sweetcaptcha>;``作者:Jaime Wyant
。
感谢'sweetcaptcha<;http://www.sweetcaptcha.com/>;'`_