検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 95 for valid (0.024 sec.)
クラスベースのビューでフォームを扱う — Django 4.0.6 ドキュメント 12599
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ss = ContactForm success_url = '/thanks/' def form_valid ( self , form ): # This method is called when vali ... ponse. form . send_email () return super () . form_valid ( form ) メモ: FormView は TemplateResponseMixin を ... 、ここでは template_name を使うことができます。 form_valid() デフォルトの実装は、ただ単に success_url にリダイ ... デルが使用されます。 Model form views provide a form_valid() implementation that saves the model automaticall ...
https://man.plustar.jp/django/topics/class-based-views/generic-editing.html - [similar]
django.core.validators — Django 4.0.6 ドキュメント 11901
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... Table of contents | Index | Modules up django.core.validators のソースコード import ipaddress import re imp ... it , urlunsplit from django.core.exceptions import ValidationError from django.utils.deconstruct import dec ... g import punycode from django.utils.ipv6 import is_valid_ipv6_address from django.utils.regex_helper import ... n import ngettext_lazy # These values, if given to validate(), will trigger the self.required check. EMPTY_ ...
https://man.plustar.jp/django/_modules/django/core/validators.html - [similar]
Form fields — Django 4.0.6 ドキュメント 10861
" + 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: >> ... xample.com' ) 'foo@example.com' >>> f . clean ( 'invalid email 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 ...
https://man.plustar.jp/django/ref/forms/fields.html - [similar]
フォームセット (Formset) — Django 4.0.6 ドキュメント 9808
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... れるかだけに影響し、バリデーションには影響しません。 validate_max=True が formset_factory() に渡される場合は、 ... max_num はバリデーションに影響します。 validate_max をご覧ください。 Limiting the maximum numbe ... >>> len ( formset . forms ) 1500 >>> formset . is_valid () False >>> formset . non_form_errors () ['Please ... 、普通の Form とほぼ同じです。フォームセットにも is_valid メソッドがあり、フォームセット内の全てのフォームを ...
https://man.plustar.jp/django/topics/forms/formsets.html - [similar]
フォーム API — Django 4.0.6 ドキュメント 9229
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... リーニングして検証する を参照してください。 Form. is_valid () ¶ Form オブジェクトの最重要タスクは、データを検 ... ることです。bound な Form インスタンスにおいて、 is_valid() メソッドを呼び出してバリデーションを実行し、デー ... ' : True } >>> f = ContactForm ( data ) >>> f . is_valid () True 無効なデータを試してみましょう。この例では ... ' , ... 'message' : 'Hi there' , ... 'sender' : 'invalid email address' , ... 'cc_myself' : True } >>> f = ...
https://man.plustar.jp/django/ref/forms/api.html - [similar]
PostgreSQL specific model fields — Django 4.0.6 ドキュメント 9110
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... tion of values between the database and the model, validation of data and configuration, and serialization ... yField ( ArrayField ( models . IntegerField ())) # Valid Board ( pieces = [ [ 2 , 3 ], [ 2 , 1 ], ]) # Not ... e useful to require or restrict the keys which are valid for a given field. This can be done using the Keys ... ects have the given lower bound. Can be chained to valid lookups for the base field. >>> Event . objects . ...
https://man.plustar.jp/django/ref/contrib/postgres/fields.html - [similar]
PostgreSQL specific form fields and widgets — Django 4.0.6 ドキュメント 8886
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... , but it is used to process the submitted data and validate it. For example: >>> from django import forms > ... erListForm ({ 'numbers' : '1,2,3' }) >>> form . is_valid () True >>> form . cleaned_data {'numbers': [1, 2, ... erListForm ({ 'numbers' : '1,2,a' }) >>> form . is_valid () False delimiter ¶ This is an optional argument ... dForm ({ 'places' : '1,2|2,1|4,3' }) >>> form . is_valid () True >>> form . cleaned_data {'places': [[1, 2] ...
https://man.plustar.jp/django/ref/contrib/postgres/forms.html - [similar]
バリデータ — Django 4.0.6 ドキュメント 8412
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... リデータは、値を取って 特定の条件に合致しない場合に ValidationError を返す呼び出し可能オブジェクトです。バリ ... るバリデータです: from django.core.exceptions import ValidationError from django.utils.translation import get ... text_lazy as _ def validate_even ( value ): if value % 2 != 0 : raise Valid ... params = { 'value' : value }, ) これはフィールドの validators 属性を通じて設定することができます: from djan ...
https://man.plustar.jp/django/ref/validators.html - [similar]
django.utils.http — Django 4.0.6 ドキュメント 8307
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... : break else : raise ValueError ( " %r is not in a valid HTTP date format" % date ) try : tz = datetime . t ... xception as exc : raise ValueError ( " %r is not a valid date" % date ) from exc def parse_http_date_safe ( ... parse_http_date, but return None if the input is invalid. """ try : return parse_http_date ( date ) except ... se each ETag individually, and return any that are valid. etag_matches = ( ETAG_MATCH . match ( etag . stri ...
https://man.plustar.jp/django/_modules/django/utils/http.html - [similar]
Date-based mixins — Django 4.0.6 ドキュメント 8307
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... of the year GET query argument. Raises a 404 if no valid year specification can be found. get_next_year ( d ... f the month GET query argument. Raises a 404 if no valid month specification can be found. get_next_month ( ... of the day GET query argument. Raises a 404 if no valid day specification can be found. get_next_day ( dat ... e ) ¶ Returns a date object containing the next valid day after the date provided. This function can als ...
https://man.plustar.jp/django/ref/class-based-views/mixins-date-based.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 NEXT