per page, with , order by , clip by
Results of 1 - 10 of about 68 for size (0.006 sec.)
PostgreSQL 固有のフォームフィールドとウィジェット 10963
PostgreSQL 固有のフォームフィールドとウィジェット これらのフィールドやウィジェットはすべて django.contrib.postgres.forms モジュールから利用できます。 フィールド SimpleArrayField class SimpleArrayField ( base_field , delimiter = ',' , max_le ... ジェットからサーバーに送信するデータをフォーマットする便利な方法です。 SplitArrayField class SplitArrayField ( base_field , size , remove_trailing_nulls = False ) このフィールドは、ベースとなるフィールドを固定回数複製することで配列を処理します。 base_ ... field これは必須の引数です。繰り返すフォームフィールドを指定します。 size これは、ベースとなるフィールドが使用される固定の回数です。 remove_trailing_nulls デフォルトでは False に設定されています。 ... True の場合、末尾にのみ null 値が許され、その値は取り除かれます。 例: SplitArrayField ( IntegerField ( required = True ), size = 3 , remove_trailing_nulls = False ) [ "1" , "2" , "3" ] # -> [1, 2, 3] [ "1" , "2" , "" ] # -> ValidationError - third e ...
https://man.mtool.work/django/6.1/ref/contrib/postgres/forms.html
File オブジェクト 10963
File オブジェクト django.core.files モジュールとそのサブモジュールでは、Django の基本的なファイルハンドリングに関するビルトインクラスが定義されています。 File クラス class File ( file_object , name = None ) [ソース] The File class is a thin ... represent a file. File オブジェクトには次の属性とメソッドを持ちます。 name MEDIA_ROOT からの相対パスを含むファイル名です。 size [ソース] バイト単位で表されたファイルサイズ。 file The underlying file object that this class wraps. この属性をサブクラスで ... えば、 with file.open() as f: のようにです。 __iter__ () [ソース] ファイルをイテレートして、1行ずつ返します。 chunks ( chunk_size = None ) [ソース] ファイルをイテレートし、指定されたサイズの「チャンク」を生成します。 chunk_size のデフォルトは 64 KB です ... 便利であり、ディスクからストリーミングしてメモリ全体にファイルを保存することを避けることができます。 multiple_chunks ( chunk_size = None ) [ソース] chunk_size (一括サイズ) で指定されたファイルの全内容にアクセスするために複数のチャンクが必要な場合は Tru ...
https://man.mtool.work/django/6.1/ref/files/file.html
QuerySet API リファレンス 10240
QuerySet API リファレンス このドキュメントでは、 QuerySet API の詳細を説明しています。 モデル と データベースクエリ ガイドにある説明を前提としていますので、このドキュメントを読む前にこの 2 つを読んでおくことをおすすめします。 このリファレン ... るケースに応じて、常にプロファイルを分析してください! クエリの実行に iterator() を使用した場合、 prefetch_related() は chunk_size の値が指定されたときのみ呼び出されます。 Prefetch オブジェクトを使って、事前呼び出しの操作をより細かくコントロールできます ... があるが、そのキーが既にデータベースに存在する場合、 IntegrityError が発生します。 bulk_create() bulk_create ( objs , batch_size = None , ignore_conflicts = False , update_conflicts = False , update_fields = None , unique_fields = None ) abulk_create ... ( objs , batch_size = None , ignore_conflicts = False , update_conflicts = False , update_fields = None , unique_fields = None ) 非同期バージョ ...
https://man.mtool.work/django/6.1/ref/models/querysets.html
フォーム フィールド 10055
フォーム フィールド class Field [ソース] Form クラスを作成時の一番重要な部分は、form のフィールド (field) の定義です。各フィールドにはカスタムの検証ロジックがあり、他にいくつかのフックもあります。 Field. clean ( value ) [ソース] Field クラス ... を検証します。 max_value と min_value が提供されている場合は MaxValueValidator および MinValueValidator を使用します。 step_size が提供されている場合は StepValueValidator を使用します。先頭及び末尾の空白は無視されます。 エラーメッセージのキー: require ... d , invalid , max_value , min_value , max_digits , max_decimal_places , max_whole_digits , step_size 。 max_value および min_value のエラーメッセージには %(limit_value)s が含まれる場合があり、これは適切な制限値に置き換えられ ... の最大値 (小数点より前と小数点より後の桁数を合わせ、先頭のゼロは除く)。 decimal_places 許可される小数点以下の最大桁数。 step_size 有効な入力を step_size の整数倍に制限します。もし min_value も指定されている場合、その値をオフセットとして加算し、ステップ ...
https://man.mtool.work/django/6.1/ref/forms/fields.html
Django 5.2.14 release notes 9687
Django 5.2.14 release notes May 5, 2026 Django 5.2.14 fixes three security issues with severity "low" in 5.2.13. CVE-2026-5766: Potential denial-of-service vulnerability in ASGI requests via file upload limit bypass ASGI requests with a mis ... sing or understated Content-Length header could bypass the FILE_UPLOAD_MAX_MEMORY_SIZE limit, potentially loading large files into memory and causing service degradation. As a reminder, Django expects a limit ... to be configured at the web server level rather than solely relying on FILE_UPLOAD_MAX_MEMORY_SIZE . This issue has severity "low" according to the Django security policy . CVE-2026-35192: Session fixation via public cach ...
https://man.mtool.work/django/6.1/releases/5.2.14.html
Django 4.1 リリースノート 9516
Django 4.1 リリースノート 2022年8月3日 Django 4.1 へようこそ! このリリースノートでは、 バージョン 4.1 の新機能 と、Django 4.0 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。また、 一部の機能を非推奨 とし ... ssing 'too_few_forms' and 'too_many_forms' keys. IntegerField , FloatField , and DecimalField now optionally accept a step_size argument. This is used to set the step HTML attribute, and is validated on form submission. 国際化 (internationalization) ... DB, MySQL, PostgreSQL, and SQLite 3.24+. QuerySet.iterator() now supports prefetching related objects as long as the chunk_size argument is provided. In older versions, no prefetching was done. Q objects and querysets can now be combined using ^ as t ... ow preserves lazy objects. バリデータ The new StepValueValidator checks if a value is an integral multiple of a given step size. This new validator is used for the new step_size argument added to form fields representing numeric values. Backwards inc ...
https://man.mtool.work/django/6.1/releases/4.1.html
シグナル 9516
シグナル Django には "シグナルディスパッチャ" があり、フレームワークの他の場所でアクションが発生したときに、ほかのアプリケーションが通知を受けるのを助けてくれます。簡単に言うと、シグナルは特定の 送り手 が、あるアクションが発生したことを一連 ... たとえば、 pizza_done シグナルを送信するには、次のようにします: class PizzaStore : ... def send_pizza ( self , toppings , size ): pizza_done . send ( sender = self . __class__ , toppings = toppings , size = size ) ... 4つのメソッドはすべて、呼び出さ ... します。 asend() は send() と似ていますが、await しなければならないコルーチンです: async def asend_pizza ( self , toppings , size ): await pizza_done . asend ( sender = self . __class__ , toppings = toppings , size = size ) ... Whether synchronous or a ...
https://man.mtool.work/django/6.1/topics/signals.html
Django 6.0.5 release notes 9332
Django 6.0.5 release notes May 5, 2026 Django 6.0.5 fixes three security issues with severity "low" and several bugs in 6.0.4. CVE-2026-5766: Potential denial-of-service vulnerability in ASGI requests via file upload limit bypass ASGI reque ... sts with a missing or understated Content-Length header could bypass the FILE_UPLOAD_MAX_MEMORY_SIZE limit, potentially loading large files into memory and causing service degradation. As a reminder, Django expects a limit ... to be configured at the web server level rather than solely relying on FILE_UPLOAD_MAX_MEMORY_SIZE . This issue has severity "low" according to the Django security policy . CVE-2026-35192: Session fixation via public cach ...
https://man.mtool.work/django/6.1/releases/6.0.5.html
アップロードファイルとアップロードハンドラ 9148
アップロードファイルとアップロードハンドラ アップロードファイル class UploadedFile [ソース] ファイルアップロード中、実際のファイルデータは request.FILES に保存されます。この辞書の各エントリーは UploadedFile オブジェクト(またはそのサブクラス ... ステムを圧迫する可能性があります。おそらく代わりに chunks() を使うことになるでしょう。 UploadedFile. multiple_chunks ( chunk_size = None ) アップロードされたファイルが、複数のチャンクに分けて読み込む必要があるほど大きい場合に True を返します。デフォルト ... では2.5MB以上のファイルですが、設定可能です。 UploadedFile. chunks ( chunk_size = None ) ファイルのチャンクを返すジェネレータです。 multiple_chunks() が True の場合、 read() の代わりにこのメソッドをルー ... dedFile の有用な属性は次の通りです: UploadedFile. name アップロードされたファイルの名前 (例: my_file.txt )。 UploadedFile. size アップロードされたファイルのサイズ(バイト単位)。 UploadedFile. content_type ファイルと共にアップロードされるコンテンツタ ...
https://man.mtool.work/django/6.1/ref/files/uploads.html
Django 2.0 リリースノート 8793
Django 2.0 リリースノート December 2, 2017 Django 2.0 へようこそ! このリリースノートでは、 バージョン 2.0 の新機能 と、Django 1.11 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した ... a string inside another string. On Oracle, AutoField and BigAutoField are now created as identity columns . The new chunk_size parameter of QuerySet.iterator() controls the number of rows fetched by the Python database client when streaming results ... サポートが追加されました。 Oracle のテストテーブルスペースパラメータをカスタマイズするための新しい設定項目として、 DATAFILE_SIZE 、 DATAFILE_TMP_SIZE 、 DATAFILE_EXTSIZE 、 DATAFILE_TMP_EXTSIZE が追加されました。 バリデータ The new ProhibitNullCharact ... est opened a new database connection, those queries could be included as part of the assertNumQueries() count. The default size of the Oracle test tablespace is increased from 20M to 50M and the default autoextend size is increased from 10M to 25M. T ...
https://man.mtool.work/django/6.1/releases/2.0.html
PREV 1 2 3 4 5 6 7 NEXT