摘要: 请求与响应 请求:HttpRequests objects django把请求的元数据都封装到请求对象中。 常用属性: path:请求页面的完整路径的字符串,不包括协议。 method:返回当前请求使用的http方法的字符串,他保证是大写。 encoding:当前请求数据使用的编码,默认为utf-8 阅读全文
posted @ 2019-04-03 04:03 jonney_2019 阅读(176) 评论(0) 推荐(0) 编辑