per page, with , order by , clip by
Results of 1 - 10 of about 33 for mail (0.008 sec.)
Migrating email to mailers 13781
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
メールを送信する 13684
メールを送信する 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() ... を使用します。たとえば、プレーンテキストのメッセージを送信するには、次のようにします。 from django.core.mail import send_mail send_mail ( "Subject here" , "Here is the message." , "from@example.com" , [ "to@example.com" ], ) When a ... dditional email sending functionality is needed, use the EmailMessage or EmailMultiAlternatives class. For example, to send a multipart em ...
https://man.mtool.work/django/6.1/topics/email.html
Django 6.1 release notes 10027
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 ... ects before deleting them. As a consequence, the DB_CASCADE option 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 mechan ... isms 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.party.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 9192
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 ... n 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 ... ning them continues to belong to external worker processes. Tasks 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 ( su ... bject , message , None , emails ) Once defined, tasks can be enqueued through a configured backend: email_users . enqueue ( emails = [ "user@example.com" ...
https://man.mtool.work/django/6.1/releases/6.0.html
Django's Tasks framework 8887
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 ... kend Defining Tasks Tasks are defined using the django.tasks.task() 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 ( su ... bject = subject , message = message , from_email = None , recipient_list = emails ) The return value of the decorator is a Task instance. Task attributes can be customized ...
https://man.mtool.work/django/6.1/topics/tasks.html
ロギング 8615
ロギング 参考 ロギングの設定と利用 Django のロギングの概要 Django の logging モジュールは Python の 組み込み logging モジュールを継承しています。 Logging は、一般的なDjangoの django.setup() 関数の一部として設定されているため、明示的に無効に ... alse のとき: django ロガーは、 django ヒエラルキー ( django.server を除く) において、 ERROR ないし CRITICAL レベルを AdminEmailHandler に送信します。 DEBUG の値にかかわらず: django.server ロガーは INFO レベル以上のメッセージをコンソールに送信します。 ... django.server を除く全てのロガーは、ルートの django ロガーまで、親に対してログを伝播させます。 console と mail_admins ハンドラは、上述の動作を提供するためにルートロガーにアタッチされます。 Pythonのデフォルトは、レベル WARNING 以上のレ ... ndler" , }, "django.server" : { "level" : "INFO" , "class" : "logging.StreamHandler" , "formatter" : "django.server" , }, "mail_admins" : { "level" : "ERROR" , "filters" : [ "require_debug_false" ], "class" : "django.utils.log.AdminEmailHandler" , }, ...
https://man.mtool.work/django/6.1/ref/logging.html
テストツール 8133
テストツール Django は、テストを書くのに便利なツールをいくつか提供しています。 There are community-maintained solutions! Django has a vibrant ecosystem. There are testing and fixtures solutions highlighted on the Community Ecosystem page. T ... ールバックが呼び出されます。これは、ラップされたコードブロック後のコミットをエミュレートします。 例: from django.core import mail from django.test import TestCase class ContactTests ( TestCase ): def test_post ( self ): with self . captureOnCommitCallb ... self . assertEqual ( response . status_code , 200 ) self . assertEqual ( len ( callbacks ), 1 ) self . assertEqual ( len ( mail . outbox ), 1 ) self . assertEqual ( mail . outbox [ 0 ] . subject , "Contact Form" ) self . assertEqual ( mail . outbox [ ... は各テストケースの開始時に、テスト用のメール送信トレイの中身を消去します。 テスト中のメールサービスの詳細については、以下の Email services を参照してください。 アサーション Python の通常の unittest.TestCase クラスが assertTrue() や assertEqual() のよう ...
https://man.mtool.work/django/6.1/topics/testing/tools.html
Django の機能廃止のタイムライン 8037
Django の機能廃止のタイムライン このドキュメントは、 非推奨化ポリシー に従って、Django の様々なパーツが互換性を伴わない方法で変更または削除されるタイミングについて概説しています。各項目についての詳細は、多くの場合 2 つ前のバージョンのリリー ... ent of django.core.paginator.Paginator and django.core.paginator.AsyncPaginator will no longer be allowed. The django.core.mail APIs will no longer accept certain parameters as positional arguments. These must be passed as keyword arguments instead. ... Support for passing Python's legacy email email.mime.base.MIMEBase object to EmailMessage.attach() (or including one in the message's attachments list) will be remo ... ved. The django.core.mail.BadHeaderError exception will be removed. The django.core.mail.SafeMIMEText and SafeMIMEMultipart classes will be removed. ...
https://man.mtool.work/django/6.1/internals/deprecation.html
Django 1.2 リリースノート 7909
Django 1.2 リリースノート 2010 年 5 月 17 日 Django 1.2 へようこそ! Nearly a year in the making, Django 1.2 packs an impressive list of new features and lots of bug fixes. These release notes cover the new features, as well as important cha ... r object-level permissions , permissions for anonymous users , and more flexible username requirements . Customization of email sending via email backends . New "smart" if template tag which supports comparison operators. These are just the highlight ... characters, including @ , + , . and - characters. E メールのバックエンド You can now configure the way that Django sends email . Instead of using SMTP to send all email, you can now choose a configurable email backend to send messages. If your hosti ... ng provider uses a sandbox or some other non-SMTP technique for sending mail, you can now construct an email backend that will allow Django's standard mail sending methods to use those facilities. Th ...
https://man.mtool.work/django/6.1/releases/1.2.html
索引 7861
索引 記号 | _ | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | ア | イ | ク | コ | シ | ス | テ | ハ | ヒ | フ | メ | モ | ロ | 具 | 国 | 環 | 翻 | 表 | 言 | 長 記号 -- dbshell コマン ... ション --add-location makemessages コマンドラインオプション --addrport testserver コマンドラインオプション --admins sendtestemail コマンドラインオプション --all diffsettings コマンドラインオプション dumpdata コマンドラインオプション makemessages コマン ... tecachetable コマンドラインオプション makemigrations コマンドラインオプション --durations test コマンドラインオプション --email createsuperuser コマンドラインオプション --empty makemigrations コマンドラインオプション --exclude compilemessages コマンド ... ラインオプション --locale compilemessages コマンドラインオプション makemessages コマンドラインオプション --managers sendtestemail コマンドラインオプション --mapping ogrinspect コマンドラインオプション --merge makemigrations コマンドラインオプション --m ...
https://man.mtool.work/django/6.1/genindex.html
PREV 1 2 3 4 NEXT