django rest框架序列化程序的recaptcha字段。
djangorestframework-recaptcha的Python项目详细描述
============
django rest framework recaptcha
============
============br/>
。图片::https://badge.fury.io/py/djangorestframework recaptcha.svg
:目标:https://badge.fury.io/py/djangorestframework recaptcha
…图像::HTTPS://TravIS-CI.Org/MaxiLiN-R/Django Rest-Frtuff-ReCAPTCH.vg?分支=硕士> BR/>:目标:http://特拉维斯Cior.Org/MaxLimeN-R/Django REST框架RePAPTCH
BR/>。图像::HTTPS://Copral.IO/Reave/GITHUB/MaMuliLun-R/Django Rest-Frtuff-ReAPTCHA/BADGE.VG?分支=硕士> BR/>:目标:HTTPS://Curral.IO/GITHUB/MaMuliLIE-R/Django Rest-Frtuff-ReCAPTCHA?分支=主
…图片::https://readthedocs.org/projects/django-rest-framework-recaptcha/badge/?version=latest
:目标:https://django-rest-framework-recaptcha.readthedocs.io/en/latest/?badge=latest
:alt:documentation status
documentation
----
https://django rest framework recaptcha.readthedocs.io.
要求
=-
>
-
*django:1.7、3.7、1.11、2.0、3.4、3.5、3.10、1.11、2.0、2.0、2.1
*django rest framework:3.4、3.5、3.6、3.6、3.6、3.7、3.11.11、2.0.0、2.1.1.1
*django rest rest framework<框架概述,在终端中运行此命令:
…代码块::console
$pip install django rest framework recaptcha
这是安装djangorestframework recaptcha的首选方法,因为它总是安装最新的稳定版本。
这个“python安装指南”可以指导您完成整个过程。_ pip:https://pip.pypa.io
_ python安装指南:http://docs.python guide.org/en/latest/starting/installation/
代码块:python
installed_apps=(
…
“rest_framework_recaptcha”,
…
)
下一步,注册并在
https://www.google.com/recaptcha/admin获取recaptcha凭据。
将您的google recaptcha密钥复制/粘贴到
``drf_recaptcha_secret_key``设置:
…代码块::python
drf_recaptcha_secret_key=“<;your_recaptcha_secret_key>;”
用法
----
要在项目中使用django rest framework recaptcha,您需要
导入并将“recaptcha field”序列化程序字段添加到想要的序列化程序中。例如:
…代码块::python
from rest_framework import serializer
from rest_framework recaptcha import recaptchafield
class myserializer(serializer.serializer):
recaptcha=recaptchafield()
==history
-
<0.2.0(2018-12-21)
---------
添加了
~~~
*设置长描述内容类型以重新构造文本。
0.1.0(2018-07-02)
----
django rest framework recaptcha
============
============br/>
。图片::https://badge.fury.io/py/djangorestframework recaptcha.svg
:目标:https://badge.fury.io/py/djangorestframework recaptcha
…图像::HTTPS://TravIS-CI.Org/MaxiLiN-R/Django Rest-Frtuff-ReCAPTCH.vg?分支=硕士> BR/>:目标:http://特拉维斯Cior.Org/MaxLimeN-R/Django REST框架RePAPTCH
BR/>。图像::HTTPS://Copral.IO/Reave/GITHUB/MaMuliLun-R/Django Rest-Frtuff-ReAPTCHA/BADGE.VG?分支=硕士> BR/>:目标:HTTPS://Curral.IO/GITHUB/MaMuliLIE-R/Django Rest-Frtuff-ReCAPTCHA?分支=主
…图片::https://readthedocs.org/projects/django-rest-framework-recaptcha/badge/?version=latest
:目标:https://django-rest-framework-recaptcha.readthedocs.io/en/latest/?badge=latest
:alt:documentation status
documentation
----
https://django rest framework recaptcha.readthedocs.io.
要求
=-
>
-
*django:1.7、3.7、1.11、2.0、3.4、3.5、3.10、1.11、2.0、2.0、2.1
*django rest framework:3.4、3.5、3.6、3.6、3.6、3.7、3.11.11、2.0.0、2.1.1.1
*django rest rest framework<框架概述,在终端中运行此命令:
…代码块::console
$pip install django rest framework recaptcha
这是安装djangorestframework recaptcha的首选方法,因为它总是安装最新的稳定版本。
这个“python安装指南”可以指导您完成整个过程。_ pip:https://pip.pypa.io
_ python安装指南:http://docs.python guide.org/en/latest/starting/installation/
代码块:python
installed_apps=(
…
“rest_framework_recaptcha”,
…
)
下一步,注册并在
https://www.google.com/recaptcha/admin获取recaptcha凭据。
将您的google recaptcha密钥复制/粘贴到
``drf_recaptcha_secret_key``设置:
…代码块::python
drf_recaptcha_secret_key=“<;your_recaptcha_secret_key>;”
用法
----
要在项目中使用django rest framework recaptcha,您需要
导入并将“recaptcha field”序列化程序字段添加到想要的序列化程序中。例如:
…代码块::python
from rest_framework import serializer
from rest_framework recaptcha import recaptchafield
class myserializer(serializer.serializer):
recaptcha=recaptchafield()
==history
<0.2.0(2018-12-21)
---------
添加了
~~~
0.1.0(2018-07-02)
----