Python django.shortcuts模块,常用函数和类
下面列出了Python django.shortcuts 模块中定义的常用函数和类,我们从1612个开源Python项目中,按照使用频率进行了排序。
函数和类 | 使用项目数 |
---|---|
1. render() | 用在(1214)个项目中 |
2. redirect() | 用在(646)个项目中 |
3. get_object_or_404() | 用在(638)个项目中 |
4. render_to_response() | 用在(224)个项目中 |
5. resolve_url() | 用在(66)个项目中 |
6. HttpResponse() | 用在(36)个项目中 |
7. reverse() | 用在(25)个项目中 |
8. HttpResponseRedirect() | 用在(21)个项目中 |
9. get_list_or_404() | 用在(9)个项目中 |
10. Http404() | 用在(6)个项目中 |
11. RequestContext() | 用在(6)个项目中 |
12. _get_queryset() | 用在(5)个项目中 |