per page, with , order by , clip by
Results of 1 - 6 of about 6 for ContentFile (0.004 sec.)
File オブジェクト 13069
File オブジェクト django.core.files モジュールとそのサブモジュールでは、Django の基本的なファイルハンドリングに関するビルトインクラスが定義されています。 File クラス class File ( file_object , name = None ) [ソース] The File class is a thin ... file object that this class wraps. この属性をサブクラスで扱う場合には注意が必要です。 Some subclasses of File , including ContentFile and FieldFile , may replace this attribute with an object other than a Python file object . In these cases, this attribute ... into , readline , readlines , seek , tell , truncate , write , writelines , readable() , writable() , および seekable() 。 ContentFile クラス class ContentFile ( content , name = None ) [ソース] ContentFile クラスは File を継承していますが、 File とは異なり ... 、実際のファイルではなく文字列コンテンツ(バイトもサポート)で操作します。例えば: from django.core.files.base import ContentFile f1 = ContentFile ( "esta frase está en español" ) f2 = ContentFile ( b "these are bytes" ) ImageFile クラス class ImageFil ...
https://man.mtool.work/django/6.1/ref/files/file.html
ファイルの取り扱い 9212
ファイルの取り扱い File オブジェクト File クラス ContentFile クラス ImageFile クラス オブジェクトに添付されたファイルに関する追加メソッド ファイルストレージ API デフォルトのストレージクラスの取得 FileSystemStorage クラス InMemoryStorage クラ ...
https://man.mtool.work/django/6.1/ref/files/
ファイルの管理 8573
ファイルの管理 この文書では、ユーザがアップロードしたようなファイルに対する Django のファイルアクセス API について説明します。下位レベルの API は十分一般的なので、他の目的にも使えます。"静的ファイル" (JS や CSS など) を扱いたい場合は、 静的 ... か、(たいていはより便利な)グローバルなデフォルトストレージシステムを使用できます。 >>> from django.core.files.base import ContentFile >>> from django.core.files.storage import default_storage >>> path = default_storage . save ( "path/to/file" , ContentFile ...
https://man.mtool.work/django/6.1/topics/files.html
ファイルのアップロード 8371
ファイルのアップロード Django がファイルアップロードを扱うとき、ファイルデータは request.FILES に格納されます ( request についての詳細は リクエスト/レスポンス オブジェクト を参照してください)。ここでは、ファイルがどのようにディスクとメモリに ... のようなオブジェクトを代入できます: from django.core.management.base import BaseCommand from django.core.files.base import ContentFile class MyCommand ( BaseCommand ): def handle ( self , * args , ** options ): content_file = ContentFile ( b "Hello world!" ...
https://man.mtool.work/django/6.1/topics/http/file-uploads.html
モデルフィールドリファレンス 7823
モデルフィールドリファレンス このドキュメントには、Django が提供するフィールドオプション field options とフィールド型 field types を含む、 Field のすべての API リファレンスが記載されています。 注釈 フィールドは django.db.models.fields に定義 ... ) myfile = File ( f ) もしくは、以下のように Python の文字列から構築することもできます: from django.core.files.base import ContentFile myfile = ContentFile ( "hello world" ) より詳しくは ファイルの管理 を参照してください。 FieldFile. delete ( save = True ) ...
https://man.mtool.work/django/6.1/ref/models/fields.html
索引 7732
索引 記号 | _ | 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 コマン ... equest の属性) (LogEntry の属性) (models.Permission の属性) (UploadedFile の属性) content_type_extra (UploadedFile の属性) ContentFile (django.core.files.base のクラス) ContentSecurityPolicyMiddleware (django.middleware.csp のクラス) ContentType (django.con ...
https://man.mtool.work/django/6.1/genindex.html
PREV 1 NEXT