per page, with , order by , clip by
Results of 1 - 7 of about 7 for seek (0.011 sec.)
File オブジェクト 13050
File オブジェクト django.core.files モジュールとそのサブモジュールでは、Django の基本的なファイルハンドリングに関するビルトインクラスが定義されています。 File クラス class File ( file_object , name = None ) [ソース] The File class is a thin ... 込み/書き込みのモードです。 open ( mode = None , * args , ** kwargs ) [ソース] Open or reopen the file (which also does File.seek(0) ). The mode argument allows the same values as Python's built-in open() . *args and **kwargs are passed after mode to P ... 下の属性とメソッドを公開しています: encoding , fileno , flush , isatty , newlines , read , readinto , readline , readlines , seek , tell , truncate , write , writelines , readable() , writable() , および seekable() 。 ContentFile クラス class ContentFi ...
https://man.mtool.work/django/6.1/ref/files/file.html
PDFファイルを作成する 9960
PDFファイルを作成する このドキュメントでは、Django のビューを使用して PDF ファイルを動的に出力する方法を説明します。これは、優れたオープンソースの Python PDF ライブラリ ReportLab により可能になっています。 PDF ファイルを動的に生成する利点は ... ave () # FileResponse sets the Content-Disposition header so that browsers # present the option to save the file. buffer . seek ( 0 ) return FileResponse ( buffer , as_attachment = True , filename = "hello.pdf" ) コードとコメントが自分自身の意味を説明 ...
https://man.mtool.work/django/6.1/howto/outputting-pdf.html
ファイルの管理 8924
ファイルの管理 この文書では、ユーザがアップロードしたようなファイルに対する Django のファイルアクセス API について説明します。下位レベルの API は十分一般的なので、他の目的にも使えます。"静的ファイル" (JS や CSS など) を扱いたい場合は、 静的 ... " ) >>> car . photo . width 191 >>> car . photo . height 287 >>> image = Image . open ( car . photo ) # Raises ValueError: seek of closed file. >>> car . photo . open () <ImageFieldFile: cars/chevy.jpg> >>> image = Image . open ( car . photo ) >>> im ...
https://man.mtool.work/django/6.1/topics/files.html
チケットをトリアージする 8415
チケットをトリアージする Django uses Trac for managing the work on the code base. Trac is a community-tended garden of the bugs people have found and the features Django has decided to add. As in any garden, sometimes there are weeds to be ... estion feature. If the approach isn't what you expected, consider asking the author why before requesting several changes. Seek to understand their reasoning first. Submit feedback on GitHub and update flags, "patch needs improvement", "needs tests", ...
https://man.mtool.work/django/6.1/internals/contributing/triaging-tickets.html
Django 1.3 リリースノート 8415
Django 1.3 リリースノート March 23, 2011 Django 1.3 へようこそ! Nearly a year in the making, Django 1.3 includes quite a few new features and plenty of bug fixes and improvements to existing features. These release notes cover the new featu ... ords that was historically prohibited). However, if avoiding profanities is important to you, you would be well advised to seek out a better, less naive approach to the problem. Localflavor changes Django 1.3 introduces the following backwards-incomp ...
https://man.mtool.work/django/6.1/releases/1.3.html
フォーム フィールド 7397
フォーム フィールド class Field [ソース] Form クラスを作成時の一番重要な部分は、form のフィールド (field) の定義です。各フィールドにはカスタムの検証ロジックがあり、他にいくつかのフックもあります。 Field. clean ( value ) [ソース] Field クラス ... d . image . format 'PNG' >>> image_field . image . getdata () # Raises AttributeError: 'NoneType' object has no attribute 'seek'. >>> image = Image . open ( image_field ) >>> image . getdata () <ImagingCore object at 0x7f5984f874b0> さらに、Pillowが画 ...
https://man.mtool.work/django/6.1/ref/forms/fields.html
リクエストとレスポンスのオブジェクト 7397
リクエストとレスポンスのオブジェクト 簡単な概要 Django は、システムを通じてステータスを渡すために、リクエストとレスポンスのオブジェクトを使います。 あるページがリクエストされたとき、Django はリクエストに関するメタデータを含んだ HttpRequest ... eadable () 常に False です。このメソッドは HttpResponse インスタンスをストリームライクオブジェクトにします。 HttpResponse. seekable () 常に False です。このメソッドは HttpResponse インスタンスをストリームライクオブジェクトにします。 HttpResponse. wri ... スタムファイル名を提供してください。 io.BytesIO のようなファイルライクオブジェクトを渡す場合、それを FileResponse に渡す前に seek() を行うのはあなたの仕事です。 open_file の内容から推測できる場合、 Content-Length ヘッダーは自動的に設定されます。 Conten ...
https://man.mtool.work/django/6.1/ref/request-response.html
PREV 1 NEXT