... or preparing security issue metadata, your peer releasers can check your entries and consult them again in the future. See example checklist . Prerequisites ¶ You'll need a few things before getting started. If this is your first release, you'll need to ... itHub account. More than one GPG key If the key you want to use is not your default signing key, you'll need to add -u you@example.com to every GPG signing command shown below, where you@example.com is the email address associated with the key you want ... the changed/added files (both .po and .mo ) and create a new PR targeting the stable branch of the corresponding release (example PR updating translations for 4.2 ). Once merged, forward port the changes into main ( example commit ). Update the django- ... ... or preparing security issue metadata, your peer releasers can check your entries and consult them again in the future. See example checklist . Prerequisites ¶ You'll need a few things before getting started. If this is your first release, you'll need to ... itHub account. More than one GPG key If the key you want to use is not your default signing key, you'll need to add -u you@example.com to every GPG signing command shown below, where you@example.com is the email address associated with the key you want ... the changed/added files (both .po and .mo ) and create a new PR targeting the stable branch of the corresponding release (example PR updating translations for 4.2 ). Once merged, forward port the changes into main ( example commit ). Update the django- ... ... には、次のようにします。 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 EmailMessage or EmailMultiAl ... ternatives class. For example, to send a multipart email that includes both HTML and plain text versions with a specific template and custom headers, yo ... ltipart email instance. msg = EmailMultiAlternatives ( subject = "Subject here" , body = text_content , from_email = "from@example.com" , to = [ "to@example.com" ], headers = { "List-Unsubscribe" : "<mailto:unsub@example.com>" }, ) # Lastly, attach the ... ... セットリストは、このプロパティから取得できます: >>> w = CalendarWidget () >>> print ( w . media ) <link href="https://static.example.com/pretty.css" media="all" rel="stylesheet"> <script src="https://static.example.com/animations.js"></script> <script src ... ="https://static.example.com/actions.js"></script> 以下は指定可能な Media オプションです。必須のものはありません。 css ¶ 様々な形式の出力メディアに ... print" : [ "newspaper.css" ], } 上記のCSS定義をレンダリングすると、次のようなHTMLになります: < link href = "https://static.example.com/pretty.css" media = "screen" rel = "stylesheet" > < link href = "https://static.example.com/lo_res.css" media = "tv,pr ... ... には、次のようにします。 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 EmailMessage or EmailMultiAl ... ternatives class. For example, to send a multipart email that includes both HTML and plain text versions with a specific template and custom headers, yo ... ltipart email instance. msg = EmailMultiAlternatives ( subject = "Subject here" , body = text_content , from_email = "from@example.com" , to = [ "to@example.com" ], headers = { "List-Unsubscribe" : "<mailto:unsub@example.com>" }, ) # Lastly, attach the ... ... セットリストは、このプロパティから取得できます: >>> w = CalendarWidget () >>> print ( w . media ) <link href="https://static.example.com/pretty.css" media="all" rel="stylesheet"> <script src="https://static.example.com/animations.js"></script> <script src ... ="https://static.example.com/actions.js"></script> 以下は指定可能な Media オプションです。必須のものはありません。 css ¶ 様々な形式の出力メディアに ... print" : [ "newspaper.css" ], } 上記のCSS定義をレンダリングすると、次のようなHTMLになります: < link href = "https://static.example.com/pretty.css" media = "screen" rel = "stylesheet" > < link href = "https://static.example.com/lo_res.css" media = "tv,pr ... ... " : ... , # value of EMAIL_BACKEND setting "OPTIONS" : { # values from other deprecated EMAIL_* settings ... , }, }, } For example, to update these settings: EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend" EMAIL_HOST = "mail.example.net" E ... MAIL_USE_TLS = True EMAIL_PORT = 587 EMAIL_HOST_USER = "user@example.net" EMAIL_HOST_PASSWORD = "password" use: MAILERS = { "default" : { "BACKEND" : "django.core.mail.backends.smtp.EmailBack ... end" , "OPTIONS" : { "host" : "mail.example.net" , "use_tls" : True , # port is not needed: it defaults to 587 with use_tls True. "username" : "user@example.net" , "p ... ... rch query if needed. If you have trouble installing an optional test dependency, you can skip that dependency locally. For example, if installing pylibmc fails, comment out its line in requirements/py3.txt and continue with ./runtests.py . Tests that re ... a settings file for database backends other than SQLite, however, you must create and provide your own test settings . For example, to run the tests on Python 3.12 using PostgreSQL: / $ tox -e py312-postgres -- --settings = my_postgres_settings ...\ ... ixing the argument list with -- , as above. Tox also respects the DJANGO_SETTINGS_MODULE environment variable, if set. For example, the following is equivalent to the command above: $ DJANGO_SETTINGS_MODULE = my_postgres_settings tox -e py312-postgres W ... ... rch query if needed. If you have trouble installing an optional test dependency, you can skip that dependency locally. For example, if installing pylibmc fails, comment out its line in requirements/py3.txt and continue with ./runtests.py . Tests that re ... a settings file for database backends other than SQLite, however, you must create and provide your own test settings . For example, to run the tests on Python 3.12 using PostgreSQL: / $ tox -e py312-postgres -- --settings = my_postgres_settings ...\ ... ixing the argument list with -- , as above. Tox also respects the DJANGO_SETTINGS_MODULE environment variable, if set. For example, the following is equivalent to the command above: $ DJANGO_SETTINGS_MODULE = my_postgres_settings tox -e py312-postgres W ... ... n elsewhere, potentially at a later date. This 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 ... st = emails ) Modifying Tasks ¶ Before enqueueing Tasks, it may be necessary to modify certain parameters of the Task. For example, to give it a higher priority than it would normally. A Task instance cannot be modified directly. Instead, a modified ins ... tance can be created with the using() method, leaving the original as-is. For example: >>> email_users . priority 0 >>> email_users . using ( priority = 10 ) . priority 10 Enqueueing Tasks ¶ To add the Task t ... 2026年10月08日