per page, with , order by , clip by
Results of 1 - 10 of about 50 for cleaned (0.013 sec.)
フォームとフィールドのバリデーション — Django 6.1 ドキュメント 14377
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » フォームとフィールドのバリデーション ¶ フォームのバリデーションは、データがクリーニング (clean) されるときに実行されます。このプロセスをカスタムした ... r が投げられた場合、バリデーションは停止し、そのエラーを投げます。このメソッドはクリーニングされたデータを返し、フォームの cleaned_data ディクショナリに格納します。 clean_<fieldname>() メソッドは、フォームサブクラス上で呼び出されます -- <fieldname> がフ ... ールドのタイプにかかわらず、その特定の属性に対するクリーニングを実行します。 このメソッドはパラメータを受け取りません。 self.cleaned_data 内のフィールドの値を検索する必要があり、またこの時点ではフォーム上で元々送信された文字列ではなく Python オブジェクトで ... あること覚えておいてください (これは cleaned_data 内にあります。上記に出てきた一般フィールドの clean() メソッドがすでに一度データをクリーニングしているからです)。 例え ...
https://man.mtool.work/django/6.1/ref/forms/validation.html
フォームとフィールドのバリデーション — Django 6.1 ドキュメント 14032
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » フォームとフィールドのバリデーション ¶ フォームのバリデーションは、データがクリーニング (clean) されるときに実行されます。このプロセスをカスタムした ... r が投げられた場合、バリデーションは停止し、そのエラーを投げます。このメソッドはクリーニングされたデータを返し、フォームの cleaned_data ディクショナリに格納します。 clean_<fieldname>() メソッドは、フォームサブクラス上で呼び出されます -- <fieldname> がフ ... ールドのタイプにかかわらず、その特定の属性に対するクリーニングを実行します。 このメソッドはパラメータを受け取りません。 self.cleaned_data 内のフィールドの値を検索する必要があり、またこの時点ではフォーム上で元々送信された文字列ではなく Python オブジェクトで ... あること覚えておいてください (これは cleaned_data 内にあります。上記に出てきた一般フィールドの clean() メソッドがすでに一度データをクリーニングしているからです)。 例え ...
https://man.mtool.work/django/6.1/ref/forms/validation.html
フォーム API — Django 6.1 ドキュメント 9008
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » フォーム API ¶ このドキュメントについて このドキュメントでは、Django のフォーム API の詳細について説明します。このドキュメントを読む前に フォームにつ ... フォームエラーの定義時のベストプラクティスについては、 ValidationError を発生させる を参照してください。 Form.add_error() は cleaned_data からフィールドを自動的に削除してしまうことに注意してください。 Form. has_error ( field , code = None ) ¶ このメソッド ... /label><input type="text" name="subject" maxlength="100" required id="id_subject">' "clean" なデータにアクセスする ¶ Form. cleaned_data ¶ Form クラスの各フィールドは、データの検証だけでなく、それを「クリーニング」する – すなわち、データを一貫した形式に正 ... DateField はいつも datetime.date オブジェクトに正規化します。 Form インスタンスを作成し、データをセットして検証した後は、 cleaned_data 属性を介してクリーンなデータにアクセスできます。 >>> data = { ... "subject" : "hello" , ... "message" : "Hi there" , ...
https://man.mtool.work/django/6.1/ref/forms/api.html
フォーム API — Django 6.1 ドキュメント 9008
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » フォーム API ¶ このドキュメントについて このドキュメントでは、Django のフォーム API の詳細について説明します。このドキュメントを読む前に フォームにつ ... フォームエラーの定義時のベストプラクティスについては、 ValidationError を発生させる を参照してください。 Form.add_error() は cleaned_data からフィールドを自動的に削除してしまうことに注意してください。 Form. has_error ( field , code = None ) ¶ このメソッド ... /label><input type="text" name="subject" maxlength="100" required id="id_subject">' "clean" なデータにアクセスする ¶ Form. cleaned_data ¶ Form クラスの各フィールドは、データの検証だけでなく、それを「クリーニング」する – すなわち、データを一貫した形式に正 ... DateField はいつも datetime.date オブジェクトに正規化します。 Form インスタンスを作成し、データをセットして検証した後は、 cleaned_data 属性を介してクリーンなデータにアクセスできます。 >>> data = { ... "subject" : "hello" , ... "message" : "Hi there" , ...
https://man.mtool.work/django/6.1/ref/forms/api.html
フォームを使う — Django 6.1 ドキュメント 8557
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » フォームを使う ¶ このドキュメントについて このドキュメントでは、Web フォームの基本と、それらを Django で扱う方法を紹介しています。より詳しく知りたい ... all its fields. When this method is called, if all fields contain valid data, it will: True を返します フォームのデータを cleaned_data 属性に配置します フォーム全体は、初めてレンダリングされたとき、次のような見た目になります。 < label for = "your_name" ... request: form = NameForm ( request . POST ) # check whether it's valid: if form . is_valid (): # process the data in form.cleaned_data as required # ... # redirect to a new URL: return HttpResponseRedirect ( "/thanks/" ) # if a GET (or any other method ... ため、HTMLフォームには前回送信されたデータが入力され、必要に応じて編集や修正が可能になります。 is_valid() が True の場合は、 cleaned_data 属性で検証済みのフォームデータを見出すことができます。このデータは、データベースを更新するために使ったり、次に進むため ...
https://man.mtool.work/django/6.1/topics/forms/
フォームを使う — Django 6.1 ドキュメント 8557
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » フォームを使う ¶ このドキュメントについて このドキュメントでは、Web フォームの基本と、それらを Django で扱う方法を紹介しています。より詳しく知りたい ... all its fields. When this method is called, if all fields contain valid data, it will: True を返します フォームのデータを cleaned_data 属性に配置します フォーム全体は、初めてレンダリングされたとき、次のような見た目になります。 < label for = "your_name" ... request: form = NameForm ( request . POST ) # check whether it's valid: if form . is_valid (): # process the data in form.cleaned_data as required # ... # redirect to a new URL: return HttpResponseRedirect ( "/thanks/" ) # if a GET (or any other method ... ため、HTMLフォームには前回送信されたデータが入力され、必要に応じて編集や修正が可能になります。 is_valid() が True の場合は、 cleaned_data 属性で検証済みのフォームデータを見出すことができます。このデータは、データベースを更新するために使ったり、次に進むため ...
https://man.mtool.work/django/6.1/topics/forms/
メッセージフレームワーク — Django 6.1 ドキュメント 7986
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » メッセージフレームワーク ¶ Web アプリケーションでは非常に一般的に、フォームやその他のユーザーインプットのプロセスの後、ユーザーに向けて一過性の通知メ ... class views. SuccessMessageMixin ¶ FormView をベースにしたクラスに、成功メッセージ属性を追加します。 get_success_message ( cleaned_data ) ¶ cleaned_data はフォームからのクリーンなデータであり、文字列フォーマットに使用されます。 Example views.py : from d ... cess_url = "/success/" success_message = " %(calculated_field)s was created successfully" def get_success_message ( self , cleaned_data ): return self . success_message % dict ( cleaned_data , calculated_field = self . object . calculated_field , ) メッ ...
https://man.mtool.work/django/6.1/ref/contrib/messages.html
フォーム フィールド — Django 6.1 ドキュメント 7986
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » フォーム フィールド ¶ class Field [ソース] ¶ Form クラスを作成時の一番重要な部分は、form のフィールド (field) の定義です。各フィールドにはカスタムの ... Form ({}, file_data ) # Pillow closes the underlying file descriptor. >>> form . is_valid () True >>> image_field = form . cleaned_data [ "img" ] >>> image_field . image <PIL.PngImagePlugin.PngImageFile image mode=RGBA size=191x287 at 0x7F5985045C18> >> ... ません。代わりに、 compress() を実装します。 1つの必須の追加引数を受け取ります: fields ¶ A tuple of fields whose values are cleaned and subsequently combined into a single value. Each value of the field is cleaned by the corresponding field in fields -- ... the first value is cleaned by the first field, the second value is cleaned by the second field, etc. Once all fields are cleaned, the list of clean v ...
https://man.mtool.work/django/6.1/ref/forms/fields.html
メッセージフレームワーク — Django 6.1 ドキュメント 7986
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » メッセージフレームワーク ¶ Web アプリケーションでは非常に一般的に、フォームやその他のユーザーインプットのプロセスの後、ユーザーに向けて一過性の通知メ ... class views. SuccessMessageMixin ¶ FormView をベースにしたクラスに、成功メッセージ属性を追加します。 get_success_message ( cleaned_data ) ¶ cleaned_data はフォームからのクリーンなデータであり、文字列フォーマットに使用されます。 Example views.py : from d ... cess_url = "/success/" success_message = " %(calculated_field)s was created successfully" def get_success_message ( self , cleaned_data ): return self . success_message % dict ( cleaned_data , calculated_field = self . object . calculated_field , ) メッ ...
https://man.mtool.work/django/6.1/ref/contrib/messages.html
フォーム フィールド — Django 6.1 ドキュメント 7986
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » フォーム フィールド ¶ class Field [ソース] ¶ Form クラスを作成時の一番重要な部分は、form のフィールド (field) の定義です。各フィールドにはカスタムの ... Form ({}, file_data ) # Pillow closes the underlying file descriptor. >>> form . is_valid () True >>> image_field = form . cleaned_data [ "img" ] >>> image_field . image <PIL.PngImagePlugin.PngImageFile image mode=RGBA size=191x287 at 0x7F5985045C18> >> ... ません。代わりに、 compress() を実装します。 1つの必須の追加引数を受け取ります: fields ¶ A tuple of fields whose values are cleaned and subsequently combined into a single value. Each value of the field is cleaned by the corresponding field in fields -- ... the first value is cleaned by the first field, the second value is cleaned by the second field, etc. Once all fields are cleaned, the list of clean v ...
https://man.mtool.work/django/6.1/ref/forms/fields.html
PREV 1 2 3 4 5 NEXT