per page, with , order by , clip by
Results of 1 - 10 of about 146 for pass (0.005 sec.)
Migrating email to mailers — Django 6.1 ドキュメント 10141
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 ... connection() and connection arguments Replacing fail_silently Migrating custom email backends Replacing auth_user and auth_password Updating AdminEmailHandler email_backend Ignoring transient failures in error reporting バージョン 6.1 で非推奨: The f ... ollowing settings and functions will be removed in Django 2028: EMAIL_BACKEND , EMAIL_FILE_PATH , EMAIL_HOST , EMAIL_HOST_PASSWORD , EMAIL_HOST_USER , EMAIL_PORT , EMAIL_SSL_CERTFILE , EMAIL_SSL_KEYFILE , EMAIL_TIMEOUT , EMAIL_USE_SSL , EMAIL_USE_TL ... ument to send_mail() , send_mass_mail() , mail_admins() , mail_managers() , and EmailMessage.send() The auth_user and auth_password arguments to send_mail() and send_mass_mail() The email_backend argument to AdminEmailHandler Migrating settings ¶ Oft ...
https://man.mtool.work/django/6.1/howto/mailers-migration.html
Migrating email to mailers — Django 6.1 ドキュメント 10141
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 ... connection() and connection arguments Replacing fail_silently Migrating custom email backends Replacing auth_user and auth_password Updating AdminEmailHandler email_backend Ignoring transient failures in error reporting バージョン 6.1 で非推奨: The f ... ollowing settings and functions will be removed in Django 2028: EMAIL_BACKEND , EMAIL_FILE_PATH , EMAIL_HOST , EMAIL_HOST_PASSWORD , EMAIL_HOST_USER , EMAIL_PORT , EMAIL_SSL_CERTFILE , EMAIL_SSL_KEYFILE , EMAIL_TIMEOUT , EMAIL_USE_SSL , EMAIL_USE_TL ... ument to send_mail() , send_mass_mail() , mail_admins() , mail_managers() , and EmailMessage.send() The auth_user and auth_password arguments to send_mail() and send_mass_mail() The email_backend argument to AdminEmailHandler Migrating settings ¶ Oft ...
https://man.mtool.work/django/6.1/howto/mailers-migration.html
"sites" フレームワーク — Django 6.1 ドキュメント 10141
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » "sites" フレームワーク ¶ Django にはオプションで "sites" フレームワークが付属しています。これは、オブジェクトや機能を特定の Web サイトに関連付けるた ... ができます。たとえば: from django.conf import settings def my_view ( request ): if settings . SITE_ID == 3 : # Do something. pass else : # Do something else. pass It's fragile to hardcode the site IDs like that, in case they change. The cleaner way of ... ef my_view ( request ): current_site = get_current_site ( request ) if current_site . domain == "foo.com" : # Do something pass else : # Do something else. pass これには、サイトフレームワークがインストールされているかどうかを確認するという利点もありま ... _without_request (): current_site = Site . objects . get_current () if current_site . domain == "foo.com" : # Do something pass else : # Do something else. pass 表示用の現在のドメインを取得する ¶ LJWorld.com と Lawrence.com はどちらも、ニュースが発生 ...
https://man.mtool.work/django/6.1/ref/contrib/sites.html
"sites" フレームワーク — Django 6.1 ドキュメント 9446
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » "sites" フレームワーク ¶ Django にはオプションで "sites" フレームワークが付属しています。これは、オブジェクトや機能を特定の Web サイトに関連付けるた ... ができます。たとえば: from django.conf import settings def my_view ( request ): if settings . SITE_ID == 3 : # Do something. pass else : # Do something else. pass It's fragile to hardcode the site IDs like that, in case they change. The cleaner way of ... ef my_view ( request ): current_site = get_current_site ( request ) if current_site . domain == "foo.com" : # Do something pass else : # Do something else. pass これには、サイトフレームワークがインストールされているかどうかを確認するという利点もありま ... _without_request (): current_site = Site . objects . get_current () if current_site . domain == "foo.com" : # Do something pass else : # Do something else. pass 表示用の現在のドメインを取得する ¶ LJWorld.com と Lawrence.com はどちらも、ニュースが発生 ...
https://man.mtool.work/django/6.1/ref/contrib/sites.html
モデル — Django 6.1 ドキュメント 9446
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » モデル ¶ モデルは、データに関する唯一かつ決定的な情報源です。あなたが保持するデータが必要とするフィールドとその動作を定義します。一般的に、各モデルは ... r を持たない場合、以下の定義を使用してください。 from django.db import models class Manufacturer ( models . Model ): # ... pass class Car ( models . Model ): manufacturer = models . ForeignKey ( Manufacturer , on_delete = models . CASCADE ) # ... 再帰 ... 複数の topping を持つ)場合、以下のように表現できます。 from django.db import models class Topping ( models . Model ): # ... pass class Pizza ( models . Model ): # ... toppings = models . ManyToManyField ( Topping ) ForeignKey と同様に、 再帰的なリレー ... 名はPythonの予約語にはできません。Pythonの構文エラーになるからです。たとえば次のようなものです: class Example(models.Model): pass = models.IntegerField() # 'pass' is a reserved word! フィールド名には連続したアンダースコアを2つ以上含めることはできません ...
https://man.mtool.work/django/6.1/topics/db/models.html
モデル — Django 6.1 ドキュメント 9446
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » モデル ¶ モデルは、データに関する唯一かつ決定的な情報源です。あなたが保持するデータが必要とするフィールドとその動作を定義します。一般的に、各モデルは ... r を持たない場合、以下の定義を使用してください。 from django.db import models class Manufacturer ( models . Model ): # ... pass class Car ( models . Model ): manufacturer = models . ForeignKey ( Manufacturer , on_delete = models . CASCADE ) # ... 再帰 ... 複数の topping を持つ)場合、以下のように表現できます。 from django.db import models class Topping ( models . Model ): # ... pass class Pizza ( models . Model ): # ... toppings = models . ManyToManyField ( Topping ) ForeignKey と同様に、 再帰的なリレー ... 名はPythonの予約語にはできません。Pythonの構文エラーになるからです。たとえば次のようなものです: class Example(models.Model): pass = models.IntegerField() # 'pass' is a reserved word! フィールド名には連続したアンダースコアを2つ以上含めることはできません ...
https://man.mtool.work/django/6.1/topics/db/models.html
Unit tests — Django 6.1 ドキュメント 8528
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 ... ostgres_settings ). The remainder of this documentation shows commands for running tests without tox , however, any option passed to runtests.py can also be passed to tox by prefixing the argument list with -- , as above. Tox also respects the DJANGO ... cted_failures on each backend). To run the tests with different settings, ensure that the module is on your PYTHONPATH and pass the module with --settings . The DATABASES setting in any test settings module needs to define two databases: A default da ... ount for the database. That user needs permission to execute CREATE DATABASE so that the test database can be created. The PASSWORD option needs to provide the password for the USER that has been specified. Test databases get their names by prependin ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/unit-tests...
エラーレポートの管理 — Django 6.1 ドキュメント 8528
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » エラーレポートの管理 ¶ サイトを公開している場合、 DEBUG 設定は常にオフにしておかなければなりません。これにより、サーバー動作は高速になり、エラーペー ... はメールサーバーへの接続方法をいくつか設定する必要があります。最低限 EMAIL_HOST と、おそらく EMAIL_HOST_USER と EMAIL_HOST_PASSWORD を指定する必要がありますが、メールサーバーの設定によっては他の設定も必要かもしれません。メール関連の設定の一覧は Djang ... tors.debug import sensitive_variables @sensitive_variables ( "user" , "pw" , "cc" ) def process_info ( user ): pw = user . pass_word cc = user . credit_card_number name = user . name ... 上記の例では、 user 、 pw 、 cc の値は非表示になり、エラーレポー ... st_parameters decorator: from django.views.decorators.debug import sensitive_post_parameters @sensitive_post_parameters ( "pass_word" , "credit_card_number" ) def record_user_profile ( request ): UserProfile . create ( user = request . user , passwor ...
https://man.mtool.work/django/6.1/howto/error-reporting.html
Unit tests — Django 6.1 ドキュメント 8528
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 ... ostgres_settings ). The remainder of this documentation shows commands for running tests without tox , however, any option passed to runtests.py can also be passed to tox by prefixing the argument list with -- , as above. Tox also respects the DJANGO ... cted_failures on each backend). To run the tests with different settings, ensure that the module is on your PYTHONPATH and pass the module with --settings . The DATABASES setting in any test settings module needs to define two databases: A default da ... ount for the database. That user needs permission to execute CREATE DATABASE so that the test database can be created. The PASSWORD option needs to provide the password for the USER that has been specified. Test databases get their names by prependin ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/unit-tests...
エラーレポートの管理 — Django 6.1 ドキュメント 8304
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » エラーレポートの管理 ¶ サイトを公開している場合、 DEBUG 設定は常にオフにしておかなければなりません。これにより、サーバー動作は高速になり、エラーペー ... はメールサーバーへの接続方法をいくつか設定する必要があります。最低限 EMAIL_HOST と、おそらく EMAIL_HOST_USER と EMAIL_HOST_PASSWORD を指定する必要がありますが、メールサーバーの設定によっては他の設定も必要かもしれません。メール関連の設定の一覧は Djang ... tors.debug import sensitive_variables @sensitive_variables ( "user" , "pw" , "cc" ) def process_info ( user ): pw = user . pass_word cc = user . credit_card_number name = user . name ... 上記の例では、 user 、 pw 、 cc の値は非表示になり、エラーレポー ... st_parameters decorator: from django.views.decorators.debug import sensitive_post_parameters @sensitive_post_parameters ( "pass_word" , "credit_card_number" ) def record_user_profile ( request ): UserProfile . create ( user = request . user , passwor ...
https://man.mtool.work/django/6.1/howto/error-reporting.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT