Django Book 翻译
菜单>:
TOC
返回
原文:
* Here we use the ``application/pdf`` MIME type. This tells browsers that the document is a PDF file, rather than an HTML file. If you leave off this information, browsers will probably interpret the response as HTML, which will result in scary gobbledygook in the browser window.
翻译:
* 这里我们使用的 MIME 类型是 ``application/pdf`` 。这会告诉浏览器这个文档是一个 PDF 文档,而不是 HTML 文档。如果忽略了这个参数,浏览器可能会把这个文件看成 HTML 文档,这会使浏览器的窗口中出现很奇怪的文字。
备注:
译者: