赞
踩
官网:https://docs.djangoproject.com/zh-hans/4.1/ref/request-response/#django.http.HttpResponse
返回给浏览器端的响应对象
- from django.http import HttpResponse
- response = HttpResponse("Here's the text of the web page.")
- response = HttpResponse("Text only, please.", content_type="text/plain")
- response = HttpResponse(b'Bytestrings are also accepted.')
属性
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。