per page, with , order by , clip by
Results of 1 - 10 of about 14 for receiver (0.432 sec.)
シグナル — Django 6.1 ドキュメント 13023
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » シグナル ¶ 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_chan ... ged . connect ( my_receiver ) Django の 組み込みのシグナル は、ユーザコードに特定のアクションを通知します。 また、独自のカスタムシグナルを定義して送信 ... 理コードを直接呼び出すことを選ぶべきです。 シグナルを待ち受ける ¶ シグナルを受信するには、 Signal.connect() メソッドを使って receiver 関数を登録します。シグナルが送信されると、レシーバ関数が呼び出されます。シグナルのすべてのレシーバ関数は、登録された順番に ...
https://man.mtool.work/django/6.1/topics/signals.html
シグナル — Django 6.1 ドキュメント 13023
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » シグナル ¶ 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_chan ... ged . connect ( my_receiver ) Django の 組み込みのシグナル は、ユーザコードに特定のアクションを通知します。 また、独自のカスタムシグナルを定義して送信 ... 理コードを直接呼び出すことを選ぶべきです。 シグナルを待ち受ける ¶ シグナルを受信するには、 Signal.connect() メソッドを使って receiver 関数を登録します。シグナルが送信されると、レシーバ関数が呼び出されます。シグナルのすべてのレシーバ関数は、登録された順番に ...
https://man.mtool.work/django/6.1/topics/signals.html
Django の認証方法のカスタマイズ — Django 6.1 ドキュメント 8192
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django の認証方法のカスタマイズ ¶ Django がデフォルトで提供する認証機能は、ほとんどの一般的なケースでは十分なものですが、デフォルトではニーズにマッチ ... ルを指定してください。例えば: from django.conf import settings from django.db.models.signals import post_save def post_save_receiver ( sender , instance , created , ** kwargs ): pass post_save . connect ( post_save_receiver , sender = settings . AUTH_USER ... from django.contrib.auth import get_user_model from django.core.signals import setting_changed from django.dispatch import receiver @receiver ( setting_changed ) def user_model_swapped ( * , setting , ** kwargs ): if setting == "AUTH_USER_MODEL" : apps . ...
https://man.mtool.work/django/6.1/topics/auth/customizing.html
ロギング — Django 6.1 ドキュメント 8157
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » ロギング ¶ 参考 ロギングの設定と利用 Django のロギングの概要 Django の logging モジュールは Python の 組み込み logging モジュールを継承しています。 ... gger is used in シグナル , specifically within the Signal class, to report issues when dispatching a signal to a connected receiver. The ERROR log record includes the caught exception as exc_info and adds the following extra context: receiver : レシーバの ...
https://man.mtool.work/django/6.1/ref/logging.html
Django の認証方法のカスタマイズ — Django 6.1 ドキュメント 8157
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django の認証方法のカスタマイズ ¶ Django がデフォルトで提供する認証機能は、ほとんどの一般的なケースでは十分なものですが、デフォルトではニーズにマッチ ... ルを指定してください。例えば: from django.conf import settings from django.db.models.signals import post_save def post_save_receiver ( sender , instance , created , ** kwargs ): pass post_save . connect ( post_save_receiver , sender = settings . AUTH_USER ... from django.contrib.auth import get_user_model from django.core.signals import setting_changed from django.dispatch import receiver @receiver ( setting_changed ) def user_model_swapped ( * , setting , ** kwargs ): if setting == "AUTH_USER_MODEL" : apps . ...
https://man.mtool.work/django/6.1/topics/auth/customizing.html
ロギング — Django 6.1 ドキュメント 8157
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » ロギング ¶ 参考 ロギングの設定と利用 Django のロギングの概要 Django の logging モジュールは Python の 組み込み logging モジュールを継承しています。 ... gger is used in シグナル , specifically within the Signal class, to report issues when dispatching a signal to a connected receiver. The ERROR log record includes the caught exception as exc_info and adds the following extra context: receiver : レシーバの ...
https://man.mtool.work/django/6.1/ref/logging.html
Django 1.5 リリースノート — Django 6.1 ドキュメント 7999
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.5 リリースノート ¶ February 26, 2013 Django 1.5 へようこそ! These release notes cover the new features , as well as some backwards incompat ... ge datasets. In the localflavor for Canada, pq was added to the acceptable codes for Quebec. It's an old abbreviation. The receiver decorator is now able to connect to more than one signal by supplying a list of signals. In the admin, you can now filter ...
https://man.mtool.work/django/6.1/releases/1.5.html
Django 1.5 リリースノート — Django 6.1 ドキュメント 7999
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.5 リリースノート ¶ February 26, 2013 Django 1.5 へようこそ! These release notes cover the new features , as well as some backwards incompat ... ge datasets. In the localflavor for Canada, pq was added to the acceptable codes for Quebec. It's an old abbreviation. The receiver decorator is now able to connect to more than one signal by supplying a list of signals. In the admin, you can now filter ...
https://man.mtool.work/django/6.1/releases/1.5.html
アプリケーション — Django 6.1 ドキュメント 7964
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » アプリケーション ¶ Django には、設定の保存と調査の手段を提供するインストール済みアプリケーションのレジストリがあり、利用可能な モデル のリストもアク ... # or... MyModel = self . get_model ( "MyModel" ) # registering signals with the model's string label pre_save . connect ( receiver , sender = "app_label.MyModel" ) 警告 上記のようにモデルクラスにアクセスすることはできますが、 ready() の実装でデータベース ...
https://man.mtool.work/django/6.1/ref/applications.html
Django 1.8 リリースノート — Django 6.1 ドキュメント 7964
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.8 リリースノート ¶ April 1, 2015 Django 1.8 へようこそ! このリリースノートでは、 バージョン 1.8 の新機能 と、Django 1.7 以前からアップグレー ... _fields() . Model field default 's are now used when primary key field's are set to None . シグナル ¶ Exceptions from the (receiver, exception) tuples returned by Signal.send_robust() now have their traceback attached as a __traceback__ attribute. The en ...
https://man.mtool.work/django/6.1/releases/1.8.html
PREV 1 2 NEXT