per page, with , order by , clip by
Results of 1 - 10 of about 166 for message (0.008 sec.)
メッセージフレームワーク — Django 6.1 ドキュメント 10665
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » メッセージフレームワーク ¶ Web アプリケーションでは非常に一般的に、フォームやその他のユーザーインプットのプロセスの後、ユーザーに向けて一過性の通知メ ... によって生成されたデフォルトの settings.py は、メッセージ機能を有効にするために必要な設定を全て含んでいます: 'django.contrib.messages' は、 INSTALLED_APPS の中にあります。 MIDDLEWARE は 'django.contrib.sessions.middleware.SessionMiddleware' と 'django.con ... trib.messages.middleware.MessageMiddleware' を含みます。 デフォルトの ストレージバックエンド は sessions に依存します。そのため Session ... Middleware を有効にして、 MIDDLEWARE 内で MessageMiddleware より前に記述する必要があります。 TEMPLATES 設定で定義した DjangoTemplates バックエンドの 'context_processors' オ ...
https://man.mtool.work/django/6.1/ref/contrib/messages.html
メッセージフレームワーク — Django 6.1 ドキュメント 10665
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » メッセージフレームワーク ¶ Web アプリケーションでは非常に一般的に、フォームやその他のユーザーインプットのプロセスの後、ユーザーに向けて一過性の通知メ ... によって生成されたデフォルトの settings.py は、メッセージ機能を有効にするために必要な設定を全て含んでいます: 'django.contrib.messages' は、 INSTALLED_APPS の中にあります。 MIDDLEWARE は 'django.contrib.sessions.middleware.SessionMiddleware' と 'django.con ... trib.messages.middleware.MessageMiddleware' を含みます。 デフォルトの ストレージバックエンド は sessions に依存します。そのため Session ... Middleware を有効にして、 MIDDLEWARE 内で MessageMiddleware より前に記述する必要があります。 TEMPLATES 設定で定義した DjangoTemplates バックエンドの 'context_processors' オ ...
https://man.mtool.work/django/6.1/ref/contrib/messages.html
メールを送信する — Django 6.1 ドキュメント 10619
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 ... ッセージを送信するには、次のようにします。 from django.core.mail import send_mail send_mail ( "Subject here" , "Here is the message." , "from@example.com" , [ "to@example.com" ], ) When additional email sending functionality is needed, use the EmailMessa ... o substitute Django's memory email backend . This prevents test cases from sending real email and gives them access to the messages that would have been sent. 開発用にメールを設定する discusses some other approaches. Changed in Django 6.1: In earlier re ... n. For example, Django's logging AdminEmailHandler allows specifying the mailer configuration in its using option. Sending messages ¶ django.core.mail provides functions for conveniently sending email, as well as classes for building and sending more co ...
https://man.mtool.work/django/6.1/topics/email.html
メールを送信する — Django 6.1 ドキュメント 10619
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 ... ッセージを送信するには、次のようにします。 from django.core.mail import send_mail send_mail ( "Subject here" , "Here is the message." , "from@example.com" , [ "to@example.com" ], ) When additional email sending functionality is needed, use the EmailMessa ... o substitute Django's memory email backend . This prevents test cases from sending real email and gives them access to the messages that would have been sent. 開発用にメールを設定する discusses some other approaches. Changed in Django 6.1: In earlier re ... n. For example, Django's logging AdminEmailHandler allows specifying the mailer configuration in its using option. Sending messages ¶ django.core.mail provides functions for conveniently sending email, as well as classes for building and sending more co ...
https://man.mtool.work/django/6.1/topics/email.html
フォーム API — Django 6.1 ドキュメント 10494
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » フォーム API ¶ このドキュメントについて このドキュメントでは、Django のフォーム API の詳細について説明します。このドキュメントを読む前に フォームにつ ... 、辞書型のデータを Form クラスのコンストラクタの最初のパラメータとして渡します。 >>> data = { ... "subject" : "hello" , ... "message" : "Hi there" , ... "contact_email" : "foo@example.com" , ... "urgent" : True , ... } >>> f = ContactForm ( data ) この辞書 ... ドを呼び出して検証を実行し、データが有効であるかどうかを示すブール値を返します。 >>> data = { ... "subject" : "hello" , ... "message" : "Hi there" , ... "contact_email" : "foo@example.com" , ... "urgent" : True , ... } >>> f = ContactForm ( data ) >>> f . ... all fields are required by default) and contact_email is not a valid email address: >>> data = { ... "subject" : "" , ... "message" : "Hi there" , ... "contact_email" : "invalid email address" , ... "urgent" : True , ... } >>> f = ContactForm ( data ) > ...
https://man.mtool.work/django/6.1/ref/forms/api.html
フォーム API — Django 6.1 ドキュメント 10494
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » フォーム API ¶ このドキュメントについて このドキュメントでは、Django のフォーム API の詳細について説明します。このドキュメントを読む前に フォームにつ ... 、辞書型のデータを Form クラスのコンストラクタの最初のパラメータとして渡します。 >>> data = { ... "subject" : "hello" , ... "message" : "Hi there" , ... "contact_email" : "foo@example.com" , ... "urgent" : True , ... } >>> f = ContactForm ( data ) この辞書 ... ドを呼び出して検証を実行し、データが有効であるかどうかを示すブール値を返します。 >>> data = { ... "subject" : "hello" , ... "message" : "Hi there" , ... "contact_email" : "foo@example.com" , ... "urgent" : True , ... } >>> f = ContactForm ( data ) >>> f . ... all fields are required by default) and contact_email is not a valid email address: >>> data = { ... "subject" : "" , ... "message" : "Hi there" , ... "contact_email" : "invalid email address" , ... "urgent" : True , ... } >>> f = ContactForm ( data ) > ...
https://man.mtool.work/django/6.1/ref/forms/api.html
バリデータ (Validator) — Django 6.1 ドキュメント 8711
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » バリデータ (Validator) ¶ バリデータを記述する ¶ バリデータ (validator) は呼び出し可能なオブジェクトで、値を受け取り、ある基準を満たしていない場合に ... 加で使うことも、 field.clean() メソッドの代わりに使うことも可能です。 RegexValidator ¶ class RegexValidator ( regex = None , message = None , code = None , inverse_match = None , flags = 0 ) [ソース] ¶ パラメータ : regex -- None 以外の場合、 regex をオーバ ... ーライドします。正規表現の文字列か、コンパイル済みの正規表現を指定します。 message -- None 以外の場合、 message をオーバーライドします。 code -- None 以外の場合、 code をオーバーライドします。 inverse_matc ... Validator は、与えられた value を指定された正規表現で re.search() で検索します。デフォルトでは、一致が 見つからない 場合に message と code を持つ ValidationError を発生させます。 inverse_match を True に設定することで、動作を逆にできます。この場合、一致 ...
https://man.mtool.work/django/6.1/ref/validators.html
バリデータ (Validator) — Django 6.1 ドキュメント 8711
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » バリデータ (Validator) ¶ バリデータを記述する ¶ バリデータ (validator) は呼び出し可能なオブジェクトで、値を受け取り、ある基準を満たしていない場合に ... 加で使うことも、 field.clean() メソッドの代わりに使うことも可能です。 RegexValidator ¶ class RegexValidator ( regex = None , message = None , code = None , inverse_match = None , flags = 0 ) [ソース] ¶ パラメータ : regex -- None 以外の場合、 regex をオーバ ... ーライドします。正規表現の文字列か、コンパイル済みの正規表現を指定します。 message -- None 以外の場合、 message をオーバーライドします。 code -- None 以外の場合、 code をオーバーライドします。 inverse_matc ... Validator は、与えられた value を指定された正規表現で re.search() で検索します。デフォルトでは、一致が 見つからない 場合に message と code を持つ ValidationError を発生させます。 inverse_match を True に設定することで、動作を逆にできます。この場合、一致 ...
https://man.mtool.work/django/6.1/ref/validators.html
Django 6.0 release notes — Django 6.1 ドキュメント 7257
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 6.0 release notes ¶ December 3, 2025 Welcome to Django 6.0! These release notes cover the new features , as well as some backwards incompatib ... decorator: from django.core.mail import send_mail from django.tasks import task @task def email_users ( emails , subject , message ): return send_mail ( subject , message , None , emails ) Once defined, tasks can be enqueued through a configured backend ... : email_users . enqueue ( emails = [ "user@example.com" ], subject = "You have a message" , message = "Hello there!" , ) Backends are configured via the TASKS setting. The two built-in backends included in this ... Email handling in Django now uses Python's modern email API, introduced in Python 3.6. This API, centered around the email.message.EmailMessage class, offers a cleaner and Unicode-friendly interface for composing and sending emails. It replaces use of P ...
https://man.mtool.work/django/6.1/releases/6.0.html
Django's Tasks framework — Django 6.1 ドキュメント 7257
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django's Tasks framework ¶ New in Django 6.0: For older Django versions, the django-tasks backport is available. For a web application, there's ofte ... function: from django.core.mail import send_mail from django.tasks import task @task def email_users ( emails , subject , message ): return send_mail ( subject = subject , message = message , from_email = None , recipient_list = emails ) The return val ... end_mail from django.tasks import task @task ( priority = 2 , queue_name = "emails" ) def email_users ( emails , subject , message ): return send_mail ( subject = subject , message = message , from_email = None , recipient_list = emails ) By convention, ... sk logger = logging . getLogger ( __name__ ) @task ( takes_context = True ) def email_users ( context , emails , subject , message ): logger . debug ( f "Attempt { context . attempt } to send user email. Task result id: { context . task_result . id } ." ...
https://man.mtool.work/django/6.1/topics/tasks.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT