per page, with , order by , clip by
Results of 1 - 10 of about 136 for errors (0.008 sec.)
システムチェックフレームワーク — Django 6.1 ドキュメント 11410
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » システムチェックフレームワーク ¶ システムチェックフレームワークは、Django プロジェクトを検証するための静的チェックのセットです。一般的な問題を検出し ... ェック関数です。 from django.core.checks import Error , register @register () def example_check ( app_configs , ** kwargs ): errors = [] # ... your check logic here if check_failed : errors . append ( Error ( "an error" , hint = "A hint." , obj = checked ... _object , id = "myapp.E001" , ) ) return errors チェック関数は、 必ず app_configs 引数を受け入れる必要があります。この引数は、調査されるべきアプリケーションのリストです。 ... register ( Tags . compatibility ) def my_check ( app_configs , ** kwargs ): # ... perform compatibility checks and collect errors return errors 以下のように、本番用の設定ファイルにのみ関係する「デプロイメントチェック」を登録できます: @register ( Tags . ...
https://man.mtool.work/django/6.1/topics/checks.html
システムチェックフレームワーク — Django 6.1 ドキュメント 11338
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » システムチェックフレームワーク ¶ システムチェックフレームワークは、Django プロジェクトを検証するための静的チェックのセットです。一般的な問題を検出し ... ェック関数です。 from django.core.checks import Error , register @register () def example_check ( app_configs , ** kwargs ): errors = [] # ... your check logic here if check_failed : errors . append ( Error ( "an error" , hint = "A hint." , obj = checked ... _object , id = "myapp.E001" , ) ) return errors チェック関数は、 必ず app_configs 引数を受け入れる必要があります。この引数は、調査されるべきアプリケーションのリストです。 ... register ( Tags . compatibility ) def my_check ( app_configs , ** kwargs ): # ... perform compatibility checks and collect errors return errors 以下のように、本番用の設定ファイルにのみ関係する「デプロイメントチェック」を登録できます: @register ( Tags . ...
https://man.mtool.work/django/6.1/topics/checks.html
フォーム API — Django 6.1 ドキュメント 9705
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » フォーム API ¶ このドキュメントについて このドキュメントでは、Django のフォーム API の詳細について説明します。このドキュメントを読む前に フォームにつ ... mail" : "invalid email address" , ... "urgent" : True , ... } >>> f = ContactForm ( data ) >>> f . is_valid () False Form. errorserrors 属性にアクセスして、エラーメッセージの辞書を取得します。 >>> f . errors {'subject': ['This field is required.'], ... に格納されているのは、1つのフィールドに複数のエラーメッセージが出力される場合があるからです。 is_valid() を呼び出す前にも、 errors にアクセスできます。フォームのデータは、最初に is_valid() を呼び出すか、 errors にアクセスした時点で検証されます。 バリデー ... ションのルーチンは、 errors や call is_valid() を何度呼び出したとしても、最初の一度だけ呼び出されます。これは、バリデーションが副作用を持っている場合、 ...
https://man.mtool.work/django/6.1/ref/forms/api.html
フォーム API — Django 6.1 ドキュメント 9633
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » フォーム API ¶ このドキュメントについて このドキュメントでは、Django のフォーム API の詳細について説明します。このドキュメントを読む前に フォームにつ ... mail" : "invalid email address" , ... "urgent" : True , ... } >>> f = ContactForm ( data ) >>> f . is_valid () False Form. errorserrors 属性にアクセスして、エラーメッセージの辞書を取得します。 >>> f . errors {'subject': ['This field is required.'], ... に格納されているのは、1つのフィールドに複数のエラーメッセージが出力される場合があるからです。 is_valid() を呼び出す前にも、 errors にアクセスできます。フォームのデータは、最初に is_valid() を呼び出すか、 errors にアクセスした時点で検証されます。 バリデー ... ションのルーチンは、 errors や call is_valid() を何度呼び出したとしても、最初の一度だけ呼び出されます。これは、バリデーションが副作用を持っている場合、 ...
https://man.mtool.work/django/6.1/ref/forms/api.html
Django 1.7 リリースノート — Django 6.1 ドキュメント 9633
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.7 リリースノート ¶ September 2, 2014 Django 1.7 へようこそ! このリリースノートでは、 バージョン 1.7 の新機能 と、Django 1.6 以前からアップグ ... cumentation. Improvements to Form error handling ¶ Form.add_error() ¶ Previously there were two main patterns for handling errors in forms: Raising a ValidationError from within certain functions (e.g. Field.clean() , Form.clean_<fieldname>() , or Form ... .clean() for non-field errors.) Fiddling with Form._errors when targeting a specific field in Form.clean() or adding errors from outside of a "clean" me ... r pattern was straightforward since the form can guess from the context (i.e. which method raised the exception) where the errors belong and automatically process them. This remains the canonical way of adding errors when possible. However the latter w ...
https://man.mtool.work/django/6.1/releases/1.7.html
Django 1.7 リリースノート — Django 6.1 ドキュメント 9633
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.7 リリースノート ¶ September 2, 2014 Django 1.7 へようこそ! このリリースノートでは、 バージョン 1.7 の新機能 と、Django 1.6 以前からアップグ ... cumentation. Improvements to Form error handling ¶ Form.add_error() ¶ Previously there were two main patterns for handling errors in forms: Raising a ValidationError from within certain functions (e.g. Field.clean() , Form.clean_<fieldname>() , or Form ... .clean() for non-field errors.) Fiddling with Form._errors when targeting a specific field in Form.clean() or adding errors from outside of a "clean" me ... r pattern was straightforward since the form can guess from the context (i.e. which method raised the exception) where the errors belong and automatically process them. This remains the canonical way of adding errors when possible. However the latter w ...
https://man.mtool.work/django/6.1/releases/1.7.html
Migrating email to mailers — Django 6.1 ドキュメント 9344
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Migrating email to mailers ¶ Django 6.1 introduced the MAILERS setting, replacing EMAIL_BACKEND and several other EMAIL_* settings. It also introduc ... able to change to the MAILERS setting until the package has been updated. Solving "not available when MAILERS is defined" errors ¶ If either of these errors are raised within a third-party package, that indicates it is not compatible with the MAILERS ... the other deprecated settings. RuntimeError: get_connection(backend, ...) is not supported with MAILERS. If you see these errors, check if a newer version of that dependency is available. If not (and if there are no alternatives to that package), you ... om your settings and replace it with the equivalent deprecated email settings until the package has been updated. If those errors are coming from your own code, see the other sections in this migration guide for recommended updates. Replacing get_conne ...
https://man.mtool.work/django/6.1/howto/mailers-migration.html
Migrating email to mailers — Django 6.1 ドキュメント 9344
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Migrating email to mailers ¶ Django 6.1 introduced the MAILERS setting, replacing EMAIL_BACKEND and several other EMAIL_* settings. It also introduc ... able to change to the MAILERS setting until the package has been updated. Solving "not available when MAILERS is defined" errors ¶ If either of these errors are raised within a third-party package, that indicates it is not compatible with the MAILERS ... the other deprecated settings. RuntimeError: get_connection(backend, ...) is not supported with MAILERS. If you see these errors, check if a newer version of that dependency is available. If not (and if there are no alternatives to that package), you ... om your settings and replace it with the equivalent deprecated email settings until the package has been updated. If those errors are coming from your own code, see the other sections in this migration guide for recommended updates. Replacing get_conne ...
https://man.mtool.work/django/6.1/howto/mailers-migration.html
フォームを使う — Django 6.1 ドキュメント 8011
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » フォームを使う ¶ このドキュメントについて このドキュメントでは、Web フォームの基本と、それらを Django で扱う方法を紹介しています。より詳しく知りたい ... さい: # In your template: {{ form }} # In form_snippet.html: {% for field in form %} < div class = "fieldWrapper" > {{ field.errors }} {{ field.label_tag }} {{ field }} </ div > {% endfor %} それから FORM_RENDERER の設定を行います: settings.py ¶ from dja ... ate. A field has an as_field_group() method which renders the related elements of the field as a group: its label, widget, errors, and help text. This allows generic templates to be written that arrange each field's elements in the required layout. For ... example: {{ form.non_field_errors }} < div class = "fieldWrapper" > {{ form.subject.as_field_group }} </ div > < div class = "fieldWrapper" > {{ form.messag ...
https://man.mtool.work/django/6.1/topics/forms/
フォームを使う — Django 6.1 ドキュメント 8011
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » フォームを使う ¶ このドキュメントについて このドキュメントでは、Web フォームの基本と、それらを Django で扱う方法を紹介しています。より詳しく知りたい ... さい: # In your template: {{ form }} # In form_snippet.html: {% for field in form %} < div class = "fieldWrapper" > {{ field.errors }} {{ field.label_tag }} {{ field }} </ div > {% endfor %} それから FORM_RENDERER の設定を行います: settings.py ¶ from dja ... ate. A field has an as_field_group() method which renders the related elements of the field as a group: its label, widget, errors, and help text. This allows generic templates to be written that arrange each field's elements in the required layout. For ... example: {{ form.non_field_errors }} < div class = "fieldWrapper" > {{ form.subject.as_field_group }} </ div > < div class = "fieldWrapper" > {{ form.messag ...
https://man.mtool.work/django/6.1/topics/forms/
PREV 1 2 3 4 5 6 7 8 9 10 NEXT