per page, with , order by , clip by
Results of 1 - 10 of about 250 for text (0.014 sec.)
フォーム API — Django 6.1 ドキュメント 8744
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » フォーム API ¶ このドキュメントについて このドキュメントでは、Django のフォーム API の詳細について説明します。このドキュメントを読む前に フォームにつ ... スクリプティング攻撃の可能性を避けるために、クライアント側で結果をエスケープする必要があります。これはJavaScriptで、 element.textContent = errorText 、またはjQueryの $(el).text(errorText) ( .html() 関数ではなく) を使用することで実行できます。 何らかの理 ... d () ... >>> f = CommentForm ( initial = { "name" : "instance" }, auto_id = False ) >>> print ( f ) <div>Name:<input type="text" name="name" value="instance" required></div> <div>Url:<input type="url" name="url" required></div> <div>Comment:<input ty ... pe="text" name="comment" required></div> Form. get_initial_for_field ( field , field_name ) ¶ フォームフィールドの初期データを返しま ...
https://man.mtool.work/django/6.1/ref/forms/api.html
フォーム API — Django 6.1 ドキュメント 8744
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » フォーム API ¶ このドキュメントについて このドキュメントでは、Django のフォーム API の詳細について説明します。このドキュメントを読む前に フォームにつ ... スクリプティング攻撃の可能性を避けるために、クライアント側で結果をエスケープする必要があります。これはJavaScriptで、 element.textContent = errorText 、またはjQueryの $(el).text(errorText) ( .html() 関数ではなく) を使用することで実行できます。 何らかの理 ... d () ... >>> f = CommentForm ( initial = { "name" : "instance" }, auto_id = False ) >>> print ( f ) <div>Name:<input type="text" name="name" value="instance" required></div> <div>Url:<input type="url" name="url" required></div> <div>Comment:<input ty ... pe="text" name="comment" required></div> Form. get_initial_for_field ( field , field_name ) ¶ フォームフィールドの初期データを返しま ...
https://man.mtool.work/django/6.1/ref/forms/api.html
フォームセット (Formset) — Django 6.1 ドキュメント 7962
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » フォームセット (Formset) ¶ class BaseFormSet [ソース] ¶ フォームセットは、同じページで複数のフォームを扱うための抽象レイヤーです。データグリッドに例 ... leFormSet () >>> for form in formset : ... print ( form ) ... <div><label for="id_form-0-title">Title:</label><input type="text" name="form-0-title" id="id_form-0-title"></div> <div><label for="id_form-0-pub_date">Pub date:</label><input type="text" ... ... ] ... ) >>> for form in formset : ... print ( form ) ... <div><label for="id_form-0-title">Title:</label><input type="text" name="form-0-title" value="Django is now open source" id="id_form-0-title"></div> <div><label for="id_form-0-pub_date">Pu ... b date:</label><input type="text" name="form-0-pub_date" value="2023-02-11" id="id_form-0-pub_date"></div> <div><label for="id_form-1-title">Title:</label> ...
https://man.mtool.work/django/6.1/topics/forms/formsets.html
フォームセット (Formset) — Django 6.1 ドキュメント 7832
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » フォームセット (Formset) ¶ class BaseFormSet [ソース] ¶ フォームセットは、同じページで複数のフォームを扱うための抽象レイヤーです。データグリッドに例 ... leFormSet () >>> for form in formset : ... print ( form ) ... <div><label for="id_form-0-title">Title:</label><input type="text" name="form-0-title" id="id_form-0-title"></div> <div><label for="id_form-0-pub_date">Pub date:</label><input type="text" ... ... ] ... ) >>> for form in formset : ... print ( form ) ... <div><label for="id_form-0-title">Title:</label><input type="text" name="form-0-title" value="Django is now open source" id="id_form-0-title"></div> <div><label for="id_form-0-pub_date">Pu ... b date:</label><input type="text" name="form-0-pub_date" value="2023-02-11" id="id_form-0-pub_date"></div> <div><label for="id_form-1-title">Title:</label> ...
https://man.mtool.work/django/6.1/topics/forms/formsets.html
全文検索 — Django 6.1 ドキュメント 7761
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 全文検索 ¶ django.contrib.postgres.search モジュールのデータベース関数は PostgreSQL の 全文検索エンジン を利用しやすくしています。 このドキュメントの ... 的な使用方法は、データベースの1つのカラムに対して1つの用語を検索することです。たとえば: >>> Entry . objects . filter ( body_text__search = "Cheese" ) <QuerySet [<Entry: Cheese on Toast recipes>, <Entry: Pizza Recipes>]> これにより、データベース内の bo ... dy_text フィールドから to_tsvector が作成され、検索語 'Cheese' から plainto_tsquery が作成されます。両方ともデフォルトのデータベー ... from django.contrib.postgres.search import SearchVector >>> Entry . objects . annotate ( ... search = SearchVector ( "body_text" , "blog__tagline" ), ... ) . filter ( search = "Cheese" ) <QuerySet [<Entry: Cheese on Toast recipes>, <Entry: Pizza Reci ...
https://man.mtool.work/django/6.1/ref/contrib/postgres/search.html
メールを送信する — Django 6.1 ドキュメント 7631
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » メールを送信する ¶ Django provides wrappers for Python's email and smtplib modules to simplify composing and sending email. Django's email framework ... the EmailMessage or EmailMultiAlternatives class. For example, to send a multipart email that includes both HTML and plain text versions with a specific template and custom headers, you can use the following approach: from django.core.mail import Ema ... ilMultiAlternatives from django.template.loader import render_to_string # First, render the plain text content. text_content = render_to_string ( "templates/emails/my_email.txt" , context = { "my_variable" : 42 }, ) # Secondl ... y, render the HTML content. html_content = render_to_string ( "templates/emails/my_email.html" , context = { "my_variable" : 42 }, ) # Then, create a multipart email instance. msg = EmailMultiAlternatives ( subject = "Subject h ...
https://man.mtool.work/django/6.1/topics/email.html
メールを送信する — Django 6.1 ドキュメント 7631
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » メールを送信する ¶ Django provides wrappers for Python's email and smtplib modules to simplify composing and sending email. Django's email framework ... the EmailMessage or EmailMultiAlternatives class. For example, to send a multipart email that includes both HTML and plain text versions with a specific template and custom headers, you can use the following approach: from django.core.mail import Ema ... ilMultiAlternatives from django.template.loader import render_to_string # First, render the plain text content. text_content = render_to_string ( "templates/emails/my_email.txt" , context = { "my_variable" : 42 }, ) # Secondl ... y, render the HTML content. html_content = render_to_string ( "templates/emails/my_email.html" , context = { "my_variable" : 42 }, ) # Then, create a multipart email instance. msg = EmailMultiAlternatives ( subject = "Subject h ...
https://man.mtool.work/django/6.1/topics/email.html
全文検索 — Django 6.1 ドキュメント 7501
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 全文検索 ¶ django.contrib.postgres.search モジュールのデータベース関数は PostgreSQL の 全文検索エンジン を利用しやすくしています。 このドキュメントの ... 的な使用方法は、データベースの1つのカラムに対して1つの用語を検索することです。たとえば: >>> Entry . objects . filter ( body_text__search = "Cheese" ) <QuerySet [<Entry: Cheese on Toast recipes>, <Entry: Pizza Recipes>]> これにより、データベース内の bo ... dy_text フィールドから to_tsvector が作成され、検索語 'Cheese' から plainto_tsquery が作成されます。両方ともデフォルトのデータベー ... from django.contrib.postgres.search import SearchVector >>> Entry . objects . annotate ( ... search = SearchVector ( "body_text" , "blog__tagline" ), ... ) . filter ( search = "Cheese" ) <QuerySet [<Entry: Cheese on Toast recipes>, <Entry: Pizza Reci ...
https://man.mtool.work/django/6.1/ref/contrib/postgres/search.html
ウィジェット — Django 6.1 ドキュメント 7300
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » ウィジェット ¶ ウィジェットは、Django が HTML の input 要素の表現方法です。ウィジェットは、HTML のレンダリングをコントロールして、ウィジェットに合致 ... orm ( forms . Form ): name = forms . CharField () url = forms . URLField () comment = forms . CharField ( widget = forms . Textarea ) これは、comment のフォームに対して、デフォルトの TextInput ウィジェットではなく、より大きなサイズの Textarea ウィジェ ... アップのみをレンダリングします。Django はクラス名やその他のウィジェット固有の属性を追加しません。したがって、例えばすべての TextInput ウィジェットはウェブページ上で同じように見えます。 ウィジェットをカスタマイズする方法には 2 つあります: ウィジェットご ... forms . CharField () url = forms . URLField () comment = forms . CharField () このフォームには、名前とコメントフィールドに TextInput ウィジェットが、URL フィールドに URLInput ウィジェットが含まれます。それぞれにはデフォルトのレンダリングが適用され、C ...
https://man.mtool.work/django/6.1/ref/forms/widgets.html
フォーム フィールド — Django 6.1 ドキュメント 7240
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » フォーム フィールド ¶ class Field [ソース] ¶ Form クラスを作成時の一番重要な部分は、form のフィールド (field) の定義です。各フィールドにはカスタムの ... ... comment = forms . CharField () ... >>> f = CommentForm ( auto_id = False ) >>> print ( f ) <div>Your name:<input type="text" name="name" required></div> <div>Your website:<input type="url" name="url"></div> <div>Comment:<input type="text" name="c ... put type="number" name="age" required id="id_age"></div> <div><label for="id_nationality">Nationality?</label><input type="text" name="nationality" required id="id_nationality"></div> <div><label for="id_captcha_answer">2 + 2 =</label><input type="nu ... /" ) ... comment = forms . CharField () ... >>> f = CommentForm ( auto_id = False ) >>> print ( f ) <div>Name:<input type="text" name="name" value="Your name" required></div> <div>Url:<input type="url" name="url" value="https://" required></div> <div ...
https://man.mtool.work/django/6.1/ref/forms/fields.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT