Python django.views.decorators.csrf模块,常用函数和类

下面列出了Python django.views.decorators.csrf 模块中定义的常用函数和类,我们从176个开源Python项目中,按照使用频率进行了排序。

函数和类 使用项目数
1. csrf_exempt() 用在(102)个项目中
2. csrf_protect() 用在(70)个项目中
3. ensure_csrf_cookie() 用在(10)个项目中
4. requires_csrf_token() 用在(7)个项目中