per page, with , order by , clip by
Results of 1 - 10 of about 45 for send (0.005 sec.)
メールを送信する 14454
メールを送信する 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 ... er 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 additional em ... ail sending functionality is needed, use the EmailMessage or EmailMultiAlternatives class. For example, to send a multipart email t ...
https://man.mtool.work/django/6.1/topics/email.html
Migrating email to mailers 13704
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 th ... at send email should: If using any third-party packages that send email, verify their compatibility with MAILERS before making oth ... USE_SSL , EMAIL_USE_TLS mail.get_connection() and the connection arguments to mail functions The fail_silently argument to send_mail() , send_mass_mail() , mail_admins() , mail_managers() , and EmailMessage.send() The auth_user and auth_password argu ...
https://man.mtool.work/django/6.1/howto/mailers-migration.html
シグナル 10503
シグナル Django には "シグナルディスパッチャ" があり、フレームワークの他の場所でアクションが発生したときに、ほかのアプリケーションが通知を受けるのを助けてくれます。簡単に言うと、シグナルは特定の 送り手 が、あるアクションが発生したことを一連 ... を受けることができます: from django.apps import AppConfig from django.core.signals import setting_changed def my_receiver ( sender , ** kwargs ): print ( "Setting changed!" ) class MyAppConfig ( AppConfig ): ... def ready ( self ): setting_changed . c ... 関数が呼び出されます。シグナルのすべてのレシーバ関数は、登録された順番に1つずつ呼び出されます。 Signal. connect ( receiver , sender = None , weak = True , dispatch_uid = None ) [ソース] パラメータ : receiver -- このシグナルに接続されるコールバック関数で ... す。詳しくは レシーバ関数 を参照してください。 sender -- シグナルを受信する送信者を指定します。詳しくは 特定の送信者によって送られたシグナルに接続する を参照してください。 we ...
https://man.mtool.work/django/6.1/topics/signals.html
Django 6.1 release notes 9064
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 ... y.EmailBackend" , "OPTIONS" : { "region" : "africa-1" }, }, } You can select a mailer with the new using argument to email sending functions, or obtain an email backend instance with mail.mailers[alias] . See メールを送信する for more details. MAILER ... nd names and argument choices. The loaddata command now calls m2m_changed signals with raw=True when loading fixtures. The sendtestemail command now supports a --using option to specify the MAILERS alias. モデル QuerySet.in_bulk() now supports chaini ... Under ASGI, RemoteUserMiddleware no longer prefixes HTTP_ when looking up custom values in request.META . For example, to send -H "AuthUser: ..." , the header attribute should be HTTP_AUTHUSER . This restores the behavior prior to Django 5.2. (The d ...
https://man.mtool.work/django/6.1/releases/6.1.html
Django's Tasks framework 8896
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 ... quests 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 does not pr ... g 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 ( subject = subj ... ator is a Task instance. Task attributes can be customized via the @task decorator arguments: from django.core.mail import send_mail from django.tasks import task @task ( priority = 2 , queue_name = "emails" ) def email_users ( emails , subject , mes ...
https://man.mtool.work/django/6.1/topics/tasks.html
Django 1.2 リリースノート 7824
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 ... ect-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 highlights; fu ... ange of 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 you ... r hosting 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 facili ...
https://man.mtool.work/django/6.1/releases/1.2.html
ジェネリック編集ビュー (Generic editing view) 7778
ジェネリック編集ビュー (Generic editing view) 以下のビューは、このページで説明され、内容を編集するための基礎を提供します: django.views.generic.edit.FormView django.views.generic.edit.CreateView django.views.generic.edit.UpdateView django.vi ... ss ContactForm ( forms . Form ): name = forms . CharField () message = forms . CharField ( widget = forms . Textarea ) def send_email ( self ): # send email using the self.cleaned_data dictionary pass 例 myapp/views.py : from myapp.forms import Conta ... ( self , form ): # This method is called when valid form data has been POSTed. # It should return an HttpResponse. form . send_email () return super () . form_valid ( form ) 例 myapp/contact.html : < form method = "post" > {% csrf_token %} {{ form.a ... s_p }} < input type = "submit" value = "Send message" > </ form > class django.views.generic.edit. BaseFormView フォームを表示するための基本ビューです。直接使用するので ...
https://man.mtool.work/django/6.1/ref/class-based-views/generic-editing.html
Django 6.0 release notes 7610
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 ... a built-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 resu ... ntinues 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 ( subject , mess ... I, centered around the email.message.EmailMessage class, offers a cleaner and Unicode-friendly interface for composing and sending emails. It replaces use of Python's older legacy ( Compat32 ) API, which relied on lower-level MIME classes (from email ...
https://man.mtool.work/django/6.1/releases/6.0.html
クラスベースのビューでフォームを扱う 7564
クラスベースのビューでフォームを扱う フォームの処理には、一般に3つの場合分けが存在します。 最初の GET リクエスト (空白またはデフォルト値が埋め込まれたフォームを返す) 無効なデータの POST リクエスト (よくあるパターンは、エラー表示を追加したフ ... ss ContactForm ( forms . Form ): name = forms . CharField () message = forms . CharField ( widget = forms . Textarea ) def send_email ( self ): # send email using the self.cleaned_data dictionary pass このとき、ビューは FormView を使うことで構築できま ... ( self , form ): # This method is called when valid form data has been POSTed. # It should return an HttpResponse. form . send_email () return super () . form_valid ( form ) メモ: FormView は TemplateResponseMixin を継承するため、ここでは template_n ...
https://man.mtool.work/django/6.1/topics/class-based-views/generic-editing.html
How to release Django 7518
How to release Django このドキュメントでは、Django のリリース方法について説明しています。 これらの手順を変更した場合は、最新の情報を保ってください! ここでのポイントは、規定を設けるのではなく、説明的であることです。自由に効率化したり、変更し ... version(s) to PyPI. Enable the is_active flag for each release in the admin on djangoproject.com . Post the blog entry and send out the email announcements. Update version numbers post-release in stable branch(es). Add stub release notes for the next ... n on djangoproject.com as a "Site maintainer". Access to create a post in the Django Forum - Announcements category and to send emails to the django-announce mailing list. Access to the django-security repo in GitHub. Among other things, this provide ... git format-patch , one for the main branch and one for each stable branch being patched. A week before a security release Send out pre-notification exactly one week before the security release. The template for that email and a list of the recipient ...
https://man.mtool.work/django/6.1/internals/howto-release-django.html
PREV 1 2 3 4 5 NEXT