per page, with , order by , clip by
Results of 1 - 10 of about 358 for Example (0.010 sec.)
How to release Django — Django 6.1 ドキュメント 10371
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up How to release Django ¶ このドキュメントでは、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- ...
https://man.mtool.work/django/6.1/internals/howto-release-django.html
How to release Django — Django 6.1 ドキュメント 10371
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up How to release Django ¶ このドキュメントでは、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- ...
https://man.mtool.work/django/6.1/internals/howto-release-django.html
メールを送信する — Django 6.1 ドキュメント 10273
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 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 ...
https://man.mtool.work/django/6.1/topics/email.html
フォームアセット (Media クラス) — Django 6.1 ドキュメント 10273
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » フォームアセット ( Media クラス) ¶ 魅力的で使いやすいウェブのフォームを作るには、HTML だけでは不十分です。CSS スタイルシートも必要です。さらに豪華な ... セットリストは、このプロパティから取得できます: >>> 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 ...
https://man.mtool.work/django/6.1/topics/forms/media.html
メールを送信する — Django 6.1 ドキュメント 10273
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 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 ...
https://man.mtool.work/django/6.1/topics/email.html
フォームアセット (Media クラス) — Django 6.1 ドキュメント 10273
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » フォームアセット ( Media クラス) ¶ 魅力的で使いやすいウェブのフォームを作るには、HTML だけでは不十分です。CSS スタイルシートも必要です。さらに豪華な ... セットリストは、このプロパティから取得できます: >>> 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 ...
https://man.mtool.work/django/6.1/topics/forms/media.html
Migrating email to mailers — Django 6.1 ドキュメント 6263
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Migrating email to mailers ¶ Django 6.1 introduced the MAILERS setting, replacing EMAIL_BACKEND and several other EMAIL_* settings. It also introduc ... " : ... , # 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 ...
https://man.mtool.work/django/6.1/howto/mailers-migration.html
Unit tests — Django 6.1 ドキュメント 6263
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Unit tests ¶ Django comes with a test suite of its own, in the tests directory of the code base. It's our policy to make sure all tests pass at all ... 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 ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/unit-tests...
Unit tests — Django 6.1 ドキュメント 6067
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Unit tests ¶ Django comes with a test suite of its own, in the tests directory of the code base. It's our policy to make sure all tests pass at all ... 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 ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/unit-tests...
Django's Tasks framework — Django 6.1 ドキュメント 6067
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 ... 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 ...
https://man.mtool.work/django/6.1/topics/tasks.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT