This snippet demonstrates how you can send a file (or file-like object) through Django without having to load the whole thing into memory. The FileWrapper will turn the file-like object into an iterator for chunks of 8KB.

IanLewisIanLewis のブックマーク 2009/04/17 14:37

その他

このブックマークにはスターがありません。
最初のスターをつけてみよう!

djangosnippets: Send large files through Django, and how to generate Zip files

    \ コメントが サクサク読める アプリです /

    • App Storeからダウンロード
    • Google Playで手に入れよう