per page, with , order by , clip by
Results of 1 - 10 of about 76 for invalid (0.007 sec.)
フォーム フィールド 15612
フォーム フィールド class Field [ソース] Form クラスを作成時の一番重要な部分は、form のフィールド (field) の定義です。各フィールドにはカスタムの検証ロジックがあり、他にいくつかのフックもあります。 Field. clean ( value ) [ソース] Field クラス ... m django import forms >>> f = forms . EmailField () >>> f . clean ( "foo@example.com" ) 'foo@example.com' >>> f . clean ( "invalid email address" ) Traceback (most recent call last): ... ValidationError : ['Enter a valid email address.'] field のコアとな ... iv>Url: <ul class="errorlist"><li>Enter a valid URL.</li></ul> <input type="url" name="url" value="https://" required aria-invalid="true"> </div> <div>Comment: <ul class="errorlist"><li>This field is required.</li></ul> <input type="text" name="comment" ... required aria-invalid="true"> </div> これが、 initial 値が未結合フォームにのみ表示される理由です。結合フォームの場合、HTML 出力は結合データを使用 ...
https://man.mtool.work/django/6.1/ref/forms/fields.html
フォームとフィールドのバリデーション 10680
フォームとフィールドのバリデーション フォームのバリデーションは、データがクリーニング (clean) されるときに実行されます。このプロセスをカスタムしたい場合は、様々な箇所に変更を加えることができ、それぞれが違う目的を持っています。クリーニング方 ... constructor, to allow programmatic use (e.g. in tests) that will not vary with translations: # Good ValidationError ( _ ( "Invalid value" ), code = "invalid" ) # Bad ValidationError ( _ ( "Invalid value" )) メッセージには変数を強制しません; プレースホル ... ダとコンストラクタの params 引数を使用します: # Good ValidationError ( _ ( "Invalid value: %(value)s " ), params = { "value" : "42" }, ) # Bad ValidationError ( _ ( "Invalid value: %s " ) % value ) 位置指定 ... メッセージを書き直すときに、変数を任意の順序で配置したり、すべて省略したりすることができます。 # Good ValidationError ( _ ( "Invalid value: %(value)s " ), params = { "value" : "42" }, ) # Bad ValidationError ( _ ( "Invalid value: %s " ), params = ( "42" , ...
https://man.mtool.work/django/6.1/ref/forms/validation.html
Python プログラマーのための Django テンプレート言語 8907
Python プログラマーのための Django テンプレート言語 この文書は Django テンプレートシステムがどのように動作し、どのように拡張するか、技術的な観点から説明します。構文に関するリファレンスを探しているなら、 Django テンプレート言語 を参照してくだ ... す。 class Engine ( dirs = None , app_dirs = False , context_processors = None , debug = False , loaders = None , string_if_invalid = '' , file_charset = 'utf-8' , libraries = None , builtins = None , autoescape = True ) [ソース] Engine をインスタンス化す ... ローダーは django.template.loaders.cached.Loader でラップされます。 詳しくは ローダーの種類 を参照してください。 'string_if_invalid' は、無効な(例えばスペルミスのある)変数に対してテンプレートシステムが使用する文字列です。 デフォルトは空文字列です。 詳しく ... 限り、例外は伝播します。例外に silent_variable_failure 属性があり、その値が True である場合、その変数はエンジンの string_if_invalid 設定オプションの値(デフォルトでは空文字列)としてレンダリングされます。例: >>> t = Template ( "My name is {{ person.first ...
https://man.mtool.work/django/6.1/ref/templates/api.html
バリデータ (Validator) 8644
バリデータ (Validator) バリデータを記述する バリデータ (validator) は呼び出し可能なオブジェクトで、値を受け取り、ある基準を満たしていない場合に ValidationError を発生させます。バリデータは異なるタイプのフィールド間でバリデーションロジックを ... nter a valid value" です。 code バリデーションが失敗した場合に ValidationError で使用されるエラーコードです。デフォルトは "invalid" です。 inverse_match regex に対する match モードです。デフォルトは False です。 flags 正規表現の文字列 regex とともにコン ... and raises a ValidationError with message and code if it doesn't. Values longer than 320 characters are always considered invalid. message バリデーションに失敗した場合に ValidationError が使用するエラーメッセージです。デフォルトは "Enter a valid email ... address" です。 code バリデーションが失敗した場合に ValidationError で使用されるエラーコードです。デフォルトは "invalid" です。 allowlist メールドメインの許可リスト。デフォルトでは、正規表現( domain_regex 属性)を使って @ 記号の後に現れる文字列 ...
https://man.mtool.work/django/6.1/ref/validators.html
Django 1.8.6 リリースノート 8519
Django 1.8.6 リリースノート November 4, 2015 Django 1.8.6 adds official support for Python 3.5 and fixes several bugs in 1.8.5. バグ修正 Fixed a regression causing ModelChoiceField to ignore prefetch_related() on its queryset ( #25496 ). Al ... Concat database function idempotent on SQLite ( #25517 ). Avoided a confusing stack trace when starting runserver with an invalid INSTALLED_APPS setting ( #25510 ). This regression appeared in 1.8.5 as a side effect of fixing #24704 . Made deferred mod ... the strictly_above PostGIS lookup ( #25592 ). Fixed crash with contrib.postgres.forms.SplitArrayField and IntegerField on invalid value ( #25597 ). Added a helpful error message when Django and South migrations exist in the same directory ( #25618 ). F ...
https://man.mtool.work/django/6.1/releases/1.8.6.html
Django 5.2.9 リリースノート 8519
Django 5.2.9 リリースノート 2025年12月2日 Django 5.2.9 fixes one security issue with severity "high", one security issue with severity "moderate", and several bugs in 5.2.8. CVE-2025-13372: Potential SQL injection in FilteredRelation column ... tial denial-of-service attack due to quadratic time complexity when deserializing crafted documents containing many nested invalid elements. The internal helper django.core.serializers.xml_serializer.getInnerText() previously accumulated inner text inef ... .utils.feedgenerator.Stylesheet.__str__() did not escape the url , mimetype , and media attributes, potentially leading to invalid XML markup ( #36733 ). Fixed a bug in Django 5.2 on PostgreSQL where bulk_create() did not apply a field's custom query pl ...
https://man.mtool.work/django/6.1/releases/5.2.9.html
Django 1.11.2 リリースノート 8270
Django 1.11.2 リリースノート June 1, 2017 Django 1.11.2 adds a minor feature and fixes several bugs in 1.11.1. Also, the latest string translations from Transifex are incorporated. Minor feature The new LiveServerTestCase.port attribute rea ... 't installed, to allow third-party apps to catch that exception ( #28178 ). Fixed django.utils.http.is_safe_url() crash on invalid IPv6 URLs ( #28142 ). Fixed regression causing pickling of model fields to crash ( #28188 ). Fixed django.contrib.auth.aut ... () to reallow settable model properties ( #28222 ). Fixed MultipleObjectMixin.paginate_queryset() crash on Python 2 if the InvalidPage message contains non-ASCII ( #28204 ). Prevented Subquery from adding an unnecessary CAST which resulted in invalid SQ ...
https://man.mtool.work/django/6.1/releases/1.11.2.html
Django 1.11.23 リリースノート 8270
Django 1.11.23 リリースノート August 1, 2019 Django 1.11.23 fixes security issues in 1.11.22. CVE-2019-14232: Denial-of-service possibility in django.utils.text.Truncator If django.utils.text.Truncator 's chars() and words() methods were pa ... ngo.utils.encoding.uri_to_iri() could lead to significant memory usage due to excessive recursion when re-percent-encoding invalid UTF-8 octet sequences. uri_to_iri() now avoids recursion when re-percent-encoding invalid UTF-8 octet sequences. ...
https://man.mtool.work/django/6.1/releases/1.11.23.html
Django 1.11.3 リリースノート 8270
Django 1.11.3 リリースノート July 1, 2017 Django 1.11.3 fixes several bugs in 1.11.2. バグ修正 Removed an incorrect deprecation warning about a missing renderer argument if a Widget.render() method accepts **kwargs ( #28265 ). Fixed a regre ... tion when using a nested reverse relation in list_filter ( #28262 ). Fixed admin's FieldListFilter.get_queryset() crash on invalid input ( #28202 ). Fixed invalid HTML for a required AdminFileWidget ( #28278 ). Fixed model initialization to set the name ...
https://man.mtool.work/django/6.1/releases/1.11.3.html
Django 2.1.11 リリースノート 8270
Django 2.1.11 リリースノート August 1, 2019 Django 2.1.11 fixes security issues in 2.1.10. CVE-2019-14232: Denial-of-service possibility in django.utils.text.Truncator If django.utils.text.Truncator 's chars() and words() methods were passe ... ngo.utils.encoding.uri_to_iri() could lead to significant memory usage due to excessive recursion when re-percent-encoding invalid UTF-8 octet sequences. uri_to_iri() now avoids recursion when re-percent-encoding invalid UTF-8 octet sequences. ...
https://man.mtool.work/django/6.1/releases/2.1.11.html
PREV 1 2 3 4 5 6 7 8 NEXT