per page, with , order by , clip by
Results of 1 - 10 of about 83 for email (0.006 sec.)
メールを送信する 13055
メールを送信する Django provides wrappers for Python's email and smtplib modules to simplify composing and sending email. Django's email framework also supports swapping in different delivery mechanisms: you can direct email to the console ... or a file during development and an SMTP server or email service provider in production. コードは django.core.mail モジュールにあります。 簡単な例 簡単なメール送信には send_mail() ... nd_mail send_mail ( "Subject here" , "Here is the message." , "from@example.com" , [ "to@example.com" ], ) When additional email sending functionality is needed, use the EmailMessage or EmailMultiAlternatives class. For example, to send a multipart em ... ext versions with a specific template and custom headers, you can use the following approach: from django.core.mail import EmailMultiAlternatives from django.template.loader import render_to_string # First, render the plain text content. text_content ...
https://man.mtool.work/django/6.1/topics/email.html
Migrating email to mailers 12349
Migrating email to mailers Django 6.1 introduced the MAILERS setting, replacing EMAIL_BACKEND and several other EMAIL_* settings. It also introduced mail.mailers for obtaining configured email backend instances, replacing mail.get_connectio ... n() . A new using argument replaces the earlier connection in Django functions that send email. This guide provides details on migrating existing projects to the new mailers functionality. All Django projects that sen ... d email should: If using any third-party packages that send email, verify their compatibility with MAILERS before making other cha ... nges. Update email-related settings . Run with deprecation warnings enabled (see 廃止予定警告を解決する ) to identify other code needing upda ...
https://man.mtool.work/django/6.1/howto/mailers-migration.html
フォーム API 10990
フォーム API このドキュメントについて このドキュメントでは、Django のフォーム API の詳細について説明します。このドキュメントを読む前に フォームについての概要 を読むことをおすすめします。 バインドされた (bound) フォームとバインドされていない ... トラクタの最初のパラメータとして渡します。 >>> data = { ... "subject" : "hello" , ... "message" : "Hi there" , ... "contact_email" : "foo@example.com" , ... "urgent" : True , ... } >>> f = ContactForm ( data ) この辞書では、キーは Form クラスの属性に対 ... 効であるかどうかを示すブール値を返します。 >>> data = { ... "subject" : "hello" , ... "message" : "Hi there" , ... "contact_email" : "foo@example.com" , ... "urgent" : True , ... } >>> f = ContactForm ( data ) >>> f . is_valid () True Let's try with so ... me invalid data. In this case, subject is blank (an error, because all fields are required by default) and contact_email is not a valid email address: >>> data = { ... "subject" : "" , ... "message" : "Hi there" , ... "contact_email" : "invali ...
https://man.mtool.work/django/6.1/ref/forms/api.html
設定 10012
設定 警告 設定を上書きするとき、特にデフォルト値が空でないリストや辞書の場合、例えば STATICFILES_FINDERS などは、注意してください。Djangoの使用したい機能に必要なコンポーネントを保持するようにしてください。 コアの設定 ここでは、Django の cor ... ます。 ADMINS デフォルト値: [] (空のリスト) コードエラー通知を受け取る全ての人々のリストです。 DEBUG=False が設定され、 AdminEmailHandler が LOGGING に設定されている場合(デフォルトで設定されています)、Djangoはこれらの人々にリクエスト/レスポンスサイクル ... で発生した例外の詳細をメールで送信します。 Each item in the list should be an email address string. Example: ADMINS = [ "john@example.com" , '"Ng, Mary" <mary@example.com>' ] To safely build an address with ... a display name from variable content, see Formatting email addresses , which recommends using Address over string formatting, but since this setting requires a list of strings, wrap ...
https://man.mtool.work/django/6.1/ref/settings.html
Django 6.1 release notes 9632
Django 6.1 release notes August 5, 2026 Welcome to Django 6.1! These release notes cover the new features , as well as some backwards incompatible changes you'll want to be aware of when upgrading from Django 6.0 or earlier. We've begun the ... tion does not trigger the pre_delete or post_delete signals. Mailers The new MAILERS setting supports configuring multiple email backends with different options, similar to existing mechanisms for CACHES , DATABASES , STORAGES , and TASKS : MAILERS = ... { "default" : { "BACKEND" : "django.core.mail.backends.smtp.EmailBackend" , "OPTIONS" : { "host" : "smtp.example.com" , "use_tls" : True }, }, "marketing" : { "BACKEND" : "example.third.pa ... rty.EmailBackend" , "OPTIONS" : { "region" : "africa-1" }, }, } You can select a mailer with the new using argument to email sending ...
https://man.mtool.work/django/6.1/releases/6.1.html
Django 6.0 release notes 8626
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 incompatible changes you should be aware of when upgrading from Django 5.2 or earlier. We've begun the d ... in Tasks framework for running code outside the HTTP request–response cycle. This enables offloading work, such as sending emails or processing data, to background workers. The framework provides task definition, validation, queuing, and result handli ... sks are defined using the task() 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 en ... queued through a configured backend: email_users . enqueue ( emails = [ "user@example.com" ], subject = "You have a message" , message = "Hello there!" , ) Backends ...
https://man.mtool.work/django/6.1/releases/6.0.html
Django の認証方法のカスタマイズ 8626
Django の認証方法のカスタマイズ Django がデフォルトで提供する認証機能は、ほとんどの一般的なケースでは十分なものですが、デフォルトではニーズにマッチしない場合もあると思います。自分のプロジェクトで認証のカスタマイズを行うためには、Django が提 ... AbstractBaseUser ): identifier = models . CharField ( max_length = 40 , unique = True ) ... USERNAME_FIELD = "identifier" EMAIL_FIELD ユーザーモデルにあるメールのフィールド名を文字列で記述します。この値は get_email_field_name() で返されます。 REQUIRE ... します。このメソッドをオーバーライドした場合、正規化を保持するために super() を呼び出すようにしてください。 classmethod get_email_field_name () EMAIL_FIELD 属性で指定されたメールフィールドの名前を返します。 EMAIL_FIELD の指定が無いとき、デフォルトは 'e ... ます。 AbstractUser は AbstractBaseUser をサブクラス化します。 class models. AbstractUser clean () BaseUserManager.normalize_email() を呼び出し、メールを正規化します。このメソッドをオーバーライドした場合、正規化を保持するために必ず super() を呼び出すよう ...
https://man.mtool.work/django/6.1/topics/auth/customizing.html
Django 1.11.27 リリースノート 8436
Django 1.11.27 リリースノート December 18, 2019 Django 1.11.27 fixes a security issue and a data loss bug in 1.11.26. CVE-2019-19844: Potential account hijack via password reset form By submitting a suitably crafted email address making use ... of Unicode characters, that compared equal to an existing user email when lower-cased for comparison, an attacker could be sent a password reset token for the matched account. In order to avo ... id this vulnerability, password reset requests now compare the submitted email using the stricter, recommended algorithm for case-insensitive comparison of two identifiers from Unicode Technical Report ... 36, section 2.11.2(B)(2) . Upon a match, the email containing the reset token will be sent to the email address on record rather than the submitted address. バグ修正 Fixed a ...
https://man.mtool.work/django/6.1/releases/1.11.27.html
Django 2.2.9 リリースノート 8436
Django 2.2.9 リリースノート December 18, 2019 Django 2.2.9 fixes a security issue and a data loss bug in 2.2.8. CVE-2019-19844: Potential account hijack via password reset form By submitting a suitably crafted email address making use of Un ... icode characters, that compared equal to an existing user email when lower-cased for comparison, an attacker could be sent a password reset token for the matched account. In order to avo ... id this vulnerability, password reset requests now compare the submitted email using the stricter, recommended algorithm for case-insensitive comparison of two identifiers from Unicode Technical Report ... 36, section 2.11.2(B)(2) . Upon a match, the email containing the reset token will be sent to the email address on record rather than the submitted address. バグ修正 Fixed a ...
https://man.mtool.work/django/6.1/releases/2.2.9.html
Django's Tasks framework 8015
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 often more than just turning HTTP requests into HTTP responses. For some functionality, it may be ... keeps requests fast, reduces latency, and improves the user experience. For example, a user shouldn't have to wait for an email to send before their page finishes loading. Django's Tasks framework makes it easy to define and enqueue such work. It doe ... ask() decorator on a module-level 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 , recip ... ient_list = emails ) The return value of the decorator is a Task instance. Task attributes can be customized via the @task decorator argumen ...
https://man.mtool.work/django/6.1/topics/tasks.html
PREV 1 2 3 4 5 6 7 8 9 NEXT