Django Book 翻译
菜单>:
TOC
返回
原文:
This works because the generic views return simple ``HttpResponse`` objects that can be treated like dictionaries to set HTTP headers. This ``Content-Disposition`` business, by the way, instructs the browser to download and save the page instead of displaying it in the browser.
翻译:
这个方法之所以工作是因为通用视图返回的 ``HttpResponse`` 对象可以象一个字典 一样的设置HTTP的头部。随便说一下,这个 ``Content-Disposition`` 的含义是 告诉浏览器下载并保存这个页面,而不是在浏览器中显示它。
备注:
译者: