擅长:python、mysql、java
<p>在<a href="https://docs.djangoproject.com/en/dev/ref/request-response/#httpresponse-objects" rel="nofollow">instructions from the docs</a>后面应该是这样的:</p>
<pre><code># set content_type
response = HttpResponse("",
content_type="application/liquid; charset=utf-8")
# add content
response.write('<html>test123</html>')
</code></pre>
<p>希望这有帮助!</p>