擅长:python、mysql、java
<p>您需要使用<code>Content-Disposition</code>头,请查看以下内容:</p>
<p><a href="https://stackoverflow.com/questions/908258/generating-file-to-download-with-django">Generating file to download with Django</a><br/>
<a href="https://stackoverflow.com/questions/15790136/django-serving-a-download-file">Django Serving a Download File</a></p>