per page, with , order by , clip by
Results of 1 - 9 of about 9 for FileResponse (0.005 sec.)
PDFファイルを作成する 11899
PDFファイルを作成する このドキュメントでは、Django のビューを使用して PDF ファイルを動的に出力する方法を説明します。これは、優れたオープンソースの Python PDF ライブラリ ReportLab により可能になっています。 PDF ファイルを動的に生成する利点は ... を書く Django で PDF を動的に生成するときに重要な点は、ReportLab API がファイルライクなオブジェクトとして振る舞い、Django の FileResponse オブジェクトがファイルライクなオブジェクトを受け取るということです。 ここに、"Hello World"の例を示します: import io from d ... jango.http import FileResponse from reportlab.pdfgen import canvas def some_view ( request ): # Create a file-like buffer to receive PDF data. buffer = i ... . drawString ( 100 , 100 , "Hello world." ) # Close the PDF object cleanly, and we're done. p . showPage () p . save () # FileResponse sets the Content-Disposition header so that browsers # present the option to save the file. buffer . seek ( 0 ) return Fil ...
https://man.mtool.work/django/6.1/howto/outputting-pdf.html
Django 3.2.15 リリースノート 11144
Django 3.2.15 リリースノート 2022年8月3日 Django 3.2.15 では 3.2.14 における深刻度 "high" のセキュリティの問題を修正しました。 CVE-2022-36359: Potential reflected file download vulnerability in FileResponse An application may have been vuln ... erable to a reflected file download (RFD) attack that sets the Content-Disposition header of a FileResponse when the filename was derived from user-supplied input. The filename is now escaped to avoid this possibility. ...
https://man.mtool.work/django/6.1/releases/3.2.15.html
Django 4.0.7 リリースノート 11144
Django 4.0.7 リリースノート 2022年8月3日 Django 4.0.7 では 4.0.6 における深刻度 "high" のセキュリティの問題を修正しました。 CVE-2022-36359: Potential reflected file download vulnerability in FileResponse An application may have been vulnera ... ble to a reflected file download (RFD) attack that sets the Content-Disposition header of a FileResponse when the filename was derived from user-supplied input. The filename is now escaped to avoid this possibility. ...
https://man.mtool.work/django/6.1/releases/4.0.7.html
リクエストとレスポンスのオブジェクト 9023
リクエストとレスポンスのオブジェクト 簡単な概要 Django は、システムを通じてステータスを渡すために、リクエストとレスポンスのオブジェクトを使います。 あるページがリクエストされたとき、Django はリクエストに関するメタデータを含んだ HttpRequest ... ttpResponse オブジェクトを返す前に長時間実行される操作を行う場合は、ビュー自体で 切断を処理する 必要があるかもしれません。 FileResponse オブジェクト class FileResponse ( open_file , as_attachment = False , filename = '' , ** kwargs ) [ソース] FileResponse は ... パラメータを使用してカスタムファイル名を提供してください。 io.BytesIO のようなファイルライクオブジェクトを渡す場合、それを FileResponse に渡す前に seek() を行うのはあなたの仕事です。 open_file の内容から推測できる場合、 Content-Length ヘッダーは自動的に設定さ ... れます。 Content-Type ヘッダーは、 filename や open_file の名前から推測できる場合には自動的に設定されます。 FileResponse は、例えば以下のようにバイナリモードで開かれたファイルのような、バイナリー内容を持つあらゆるファイルライクオブジェクトを受 ...
https://man.mtool.work/django/6.1/ref/request-response.html
Django 2.1 リリースノート 8142
Django 2.1 リリースノート 2018年8月1日 Django 2.1 へようこそ! このリリースノートでは、 バージョン 2.1 の新機能 と、Django 2.0 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した機能を ... mesite argument to HttpResponse.set_cookie() to allow setting the SameSite cookie flag. The new as_attachment argument for FileResponse sets the Content-Disposition header to make the browser ask if the user wants to download the file. FileResponse also trie ...
https://man.mtool.work/django/6.1/releases/2.1.html
Django ドキュメント目次 7387
Django ドキュメント目次 さぁ始めましょう Django の概要 モデルの設計 モデルのインストール 自動生成される API で楽しむ 作業場 (scaffold) ではなく完成品 (whole house) の、動的な admin インタフェース URL を設計する ビューの自作 テンプレートを設 ... オブジェクト QueryDict オブジェクト HttpResponse オブジェクト JsonResponse オブジェクト StreamingHttpResponse オブジェクト FileResponse オブジェクト HttpResponseBase クラス SchemaEditor メソッド 属性 設定 コアの設定 認証 メッセージ セッション サイト 静的ファ ...
https://man.mtool.work/django/6.1/contents.html
Django 1.8 リリースノート 7387
Django 1.8 リリースノート April 1, 2015 Django 1.8 へようこそ! このリリースノートでは、 バージョン 1.8 の新機能 と、Django 1.7 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した機能 ... ects. The new HttpResponse.setdefault() method allows setting a header unless it has already been set. You can use the new FileResponse to stream files. The condition() decorator for conditional view processing now supports the If-unmodified-since header. テ ...
https://man.mtool.work/django/6.1/releases/1.8.html
セキュリティ上の問題のアーカイブ 7387
セキュリティ上の問題のアーカイブ Django の開発チームは、 Django のセキュリティポリシー にしたがって、セキュリティに関わる問題を、責任を持って積極的に公表しています。 この活動の一部として、修正・公開した問題の履歴リストをメンテナンスしていま ... ch) Django 4.0 (patch) Django 3.2 (patch) 2022年8月3日 - CVE 2022-36359 Potential reflected file download vulnerability in FileResponse. Full description Django 4.0 (patch) Django 3.2 (patch) 2022年7月4日 - CVE 2022-34265 Potential SQL injection via Trunc(ki ...
https://man.mtool.work/django/6.1/releases/security.html
索引 7261
索引 記号 | _ | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | ア | イ | ク | コ | シ | ス | テ | ハ | ヒ | フ | メ | モ | ロ | 具 | 国 | 環 | 翻 | 表 | 言 | 長 記号 -- dbshell コマン ... ラス) filepath_to_uri() (django.utils.encoding モジュール) FilePathField (django.db.models のクラス) (django.forms のクラス) FileResponse (django.http のクラス) FILES (HttpRequest の属性) filesizeformat template filter filesystem.Loader (django.template.loader ...
https://man.mtool.work/django/6.1/genindex.html
PREV 1 NEXT