検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 30 for ValidationError (0.020 sec.)
フォームとフィールドの検証 — Django 4.0.6 ドキュメント 13338
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... はなりません。 一般的に、あらゆるクリーニング方法は ValidationError を投げる可能性があります。処理されるデータに問題が ... ある場合、関連情報を ValidationError コンストラクタに渡します。 下記項目 に、 Validatio ... nError を投げる際のベストプラクティスがあります。 ValidationError が投げられない場合、メソッドはクリーニングされた ( ... r callables) that take a single argument and raise ValidationError on invalid input. Validators are run after the fie ...
https://man.plustar.jp/django/ref/forms/validation.html - [similar]
django.core.validators — Django 4.0.6 ドキュメント 11940
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... it , urlunsplit from django.core.exceptions import ValidationError from django.utils.deconstruct import deconstructib ... ch else not regex_matches if invalid_input : raise ValidationError ( self . message , code = self . code , params = { ... value ): if not isinstance ( value , str ): raise ValidationError ( self . message , code = self . code , params = { ... elf . unsafe_chars . intersection ( value ): raise ValidationError ( self . message , code = self . code , params = { ...
https://man.plustar.jp/django/_modules/django/core/validators.html - [similar]
バリデータ — Django 4.0.6 ドキュメント 11291
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... リデータは、値を取って 特定の条件に合致しない場合に ValidationError を返す呼び出し可能オブジェクトです。バリデータは、 ... るバリデータです: from django.core.exceptions import ValidationError from django.utils.translation import gettext_lazy ... validate_even ( value ): if value % 2 != 0 : raise ValidationError ( _ ( ' %(value)s is not an even number' ), params ... expression with re.search() . By default, raises a ValidationError with message and code if a match is not found. Its ...
https://man.plustar.jp/django/ref/validators.html - [similar]
django.core.exceptions — Django 4.0.6 ドキュメント 11079
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... NON_FIELD_ERRORS = "__all__" [ドキュメント] class ValidationError ( Exception ): """An error while validating data." ... r" can be either a simple string or an instance of ValidationError with its message attribute set, and what we define ... an be an actual `list` or `dict` or an instance of ValidationError with its `error_list` or `error_dict` attribute se ... essage , code , params ) if isinstance ( message , ValidationError ): if hasattr ( message , "error_dict" ): message ...
https://man.plustar.jp/django/_modules/django/core/exceptions.html - [similar]
Django 1.7 release notes — Django 4.0.6 ドキュメント 9130
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... n patterns for handling errors in forms: Raising a ValidationError from within certain functions (e.g. Field.clean() ... mple using Form.add_error() . Error metadata ¶ The ValidationError constructor accepts metadata such as error code or ... able for interpolating into the error message (see ValidationError を発生させる for more details); however, before Dj ... ors and django.forms.utils.ErrorList now store the ValidationError instances so these metadata can be retrieved at an ...
https://man.plustar.jp/django/releases/1.7.html - [similar]
モデルインスタンスリファレンス — Django 4.0.6 ドキュメント 9032
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... てのステージでのエラーを含む message_dict 属性を持つ ValidationError を投げます。 省略可能な exclude 引数は、検証とクリ ... あります。例えば: from django.core.exceptions import ValidationError try : article . full_clean () except ValidationErr ... できます。いずれかのフィールドで検証に失敗した場合は ValidationError が送出されます。 full_clean() の第二段階では Model ... import datetime from django.core.exceptions import ValidationError from django.db import models from django.utils.tra ...
https://man.plustar.jp/django/ref/models/instances.html - [similar]
PostgreSQL specific form fields and widgets — Django 4.0.6 ドキュメント 8431
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... '2' , '3' ] # -> [1, 2, 3] [ '1' , '2' , '' ] # -> ValidationError - third entry required. [ '1' , '' , '3' ] # -> Va ... or - second entry required. [ '' , '2' , '' ] # -> ValidationError - first and third entries required. SplitArrayFiel ... ' , '2' , '' ] # -> [1, 2] [ '1' , '' , '3' ] # -> ValidationError - second entry required. [ '' , '2' , '' ] # -> Va ...
https://man.plustar.jp/django/ref/contrib/postgres/forms.html - [similar]
Django の例外 — Django 4.0.6 ドキュメント 8236
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... nvalid A query contains invalid order_by arguments ValidationError ¶ exception ValidationError [ソース] ¶ ValidationE ... してください。 NON_FIELD_ERRORS ¶ NON_FIELD_ERRORS ¶ ValidationError s that don't belong to a particular field in a for ... MiddlewareNotUsed ImproperlyConfigured FieldError ValidationError NON_FIELD_ERRORS BadRequest RequestAborted Synchro ...
https://man.plustar.jp/django/ref/exceptions.html - [similar]
Form fields — Django 4.0.6 ドキュメント 8188
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... rgument and either raises a django.core.exceptions.ValidationError exception or returns the clean value: >>> from dja ... address' ) Traceback (most recent call last): ... ValidationError : ['Enter a valid email address.'] field のコアとな ... e empty string ( "" ) -- then clean() will raise a ValidationError exception: >>> from django import forms >>> f = fo ... lean ( '' ) Traceback (most recent call last): ... ValidationError : ['This field is required.'] >>> f . clean ( None ...
https://man.plustar.jp/django/ref/forms/fields.html - [similar]
django.contrib.postgres.validators — Django 4.0.6 ドキュメント 8139
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... のソースコード from django.core.exceptions import ValidationError from django.core.validators import ( MaxLengthVali ... _keys = self . keys - keys if missing_keys : raise ValidationError ( self . messages [ "missing_keys" ], code = "miss ... ra_keys = keys - self . keys if extra_keys : raise ValidationError ( self . messages [ "extra_keys" ], code = "extra_ ...
https://man.plustar.jp/django/_modules/django/contrib/postgres/validators.html - [similar]
PREV 1 2 3 NEXT