per page, with , order by , clip by
Results of 1 - 10 of about 29 for signal (0.003 sec.)
シグナル 16544
シグナル Django には "シグナルディスパッチャ" があり、フレームワークの他の場所でアクションが発生したときに、ほかのアプリケーションが通知を受けるのを助けてくれます。簡単に言うと、シグナルは特定の 送り手 が、あるアクションが発生したことを一連 ... 、サードパーティのアプリを登録して、設定変更の通知を受けることができます: from django.apps import AppConfig from django.core.signals import setting_changed def my_receiver ( sender , ** kwargs ): print ( "Setting changed!" ) class MyAppConfig ( AppConfig ... ナルでディスパッチするのではなく、処理コードを直接呼び出すことを選ぶべきです。 シグナルを待ち受ける シグナルを受信するには、 Signal.connect() メソッドを使って receiver 関数を登録します。シグナルが送信されると、レシーバ関数が呼び出されます。シグナルのすべ ... てのレシーバ関数は、登録された順番に1つずつ呼び出されます。 Signal. connect ( receiver , sender = None , weak = True , dispatch_uid = None ) [ソース] パラメータ : receiver -- このシグナルに ...
https://man.mtool.work/django/6.1/topics/signals.html
Django 1.5 リリースノート 9038
Django 1.5 リリースノート February 26, 2013 Django 1.5 へようこそ! 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 1.4 or older versions. We'v ... 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 users by groups which they are members of. QuerySet.bulk_ ... practice to provide those templates in order to present pretty error pages to the user. django.contrib.auth provides a new signal that is emitted whenever a user fails to login successfully. See user_login_failed The new loaddata --ignorenonexistent op ... opers wishing to access the raw POST data for these cases, should use the request.body attribute instead. request_finished signal Django used to send the request_finished signal as soon as the view function returned a response. This interacted badly wi ...
https://man.mtool.work/django/6.1/releases/1.5.html
フィクスチャ (fixture) 8826
フィクスチャ (fixture) フィクスチャ (fixture) とは、シリアライズされたデータベースのコンテンツを含むファイルのコレクションです。各フィクスチャにはユニークな名前があり、フィクスチャを構成するファイルは、複数のアプリケーションの複数のディレク ... is saved to the database as is. Model defined save() methods are not called, and any pre_save , post_save , or m2m_changed signals will be called with raw=True since the instance only contains attributes that are local to the model. You may, for exampl ... ss related fields that aren't present during fixture loading and would otherwise raise an exception: from django.db.models.signals import post_save from .models import MyModel def my_handler ( ** kwargs ): # disable the handler during fixture loading i ... Model ) このロジックをカプセル化するデコレータを書くこともできます: from functools import wraps def disable_for_loaddata ( signal_handler ): """ Decorator that turns off signal handlers when loading fixture data. """ @wraps ( signal_handler ) def wrapp ...
https://man.mtool.work/django/6.1/topics/db/fixtures.html
Porting your apps from Django 0.96 to 1.0 8386
Porting your apps from Django 0.96 to 1.0 Django 1.0 breaks compatibility with 0.96 in some areas. This guide will help you port 0.96 projects and apps to 1.0. The first part of this document includes the common changes needed to run with 1 ... s probably worth reading through the list and checking your code for these things. シグナル Add **kwargs to any registered signal handlers. Connect, disconnect, and send signals via methods on the Signal object instead of through module methods in djan ... .dispatch.dispatcher . Remove any use of the Anonymous and Any sender options; they no longer exist. You can still receive signals sent by any sender by using sender=None Make any custom signals you've declared into instances of django.dispatch.Signal ... eed to make: Old (0.96) New (1.0) def callback(sender) def callback(sender, **kwargs) sig = object() sig = django.dispatch.Signal() dispatcher.connect(callback, sig) sig.connect(callback) dispatcher.send(sig, sender) sig.send(sender) dispatcher.connect ...
https://man.mtool.work/django/6.1/releases/1.0-porting-guide.html
Django 1.8 リリースノート 8174
Django 1.8 リリースノート April 1, 2015 Django 1.8 へようこそ! このリリースノートでは、 バージョン 1.8 の新機能 と、Django 1.7 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した機能 ... 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 environ argument, which contains the WSG ... I environment structure from the request, was added to the request_started signal. You can now import the setting_changed() signal from django.core.signals to avoid loading django.test in non-test situati ... from within a transaction, provided your database supports transactions. This has one backwards incompatible side effect, signal handlers triggered from these methods are now executed within the method's transaction and any exception in a signal handl ...
https://man.mtool.work/django/6.1/releases/1.8.html
Django 2.1.15 リリースノート 8092
Django 2.1.15 リリースノート 2019年12月2日 Django 2.1.15 は 2.1.14 に含まれるセキュリティ脆弱性とデータ損失のバグを修正しています。 CVE-2019-19118: Privilege escalation in the Django admin. Since Django 2.1, a Django model admin displaying ... ot allow direct edits to the parent model, but would trigger the parent model's save() method, and cause pre and post-save signal handlers to be invoked. This is a privilege escalation as a user who lacks permission to edit a model should not be able t ... o trigger its save-related signals. To resolve this issue, the permission handling code of the Django admin interface has been changed. Now, if a user has o ...
https://man.mtool.work/django/6.1/releases/2.1.15.html
Django 6.0.3 release notes 8092
Django 6.0.3 release notes March 3, 2026 Django 6.0.3 fixes a security issue with severity "moderate", a security issue with severity "low", and several bugs in 6.0.2. CVE-2026-25673: Potential denial-of-service vulnerability in URLField vi ... 61 ). Fixed a visual regression where fieldset legends were misaligned in the admin ( #36920 ). Prevented the django.tasks.signals.task_finished signal from writing extraneous log messages when no exceptions are encountered ( #36951 ). ...
https://man.mtool.work/django/6.1/releases/6.0.3.html
Django 1.10.1 リリースノート 8027
Django 1.10.1 リリースノート September 1, 2016 Django 1.10.1 fixes several bugs in 1.10. バグ修正 Fixed a crash in MySQL connections where SELECT @@SQL_AUTO_IS_NULL doesn't return a result ( #26991 ). Allowed User.is_authenticated and User. ... to apply ( #27044 ). Included the already applied migration state changes in the Apps instance provided to the pre_migrate signal receivers to allow ContentType renaming to be performed on model rename ( #27100 ). Reallowed subclassing UserCreationForm ...
https://man.mtool.work/django/6.1/releases/1.10.1.html
Django 2.2.8 リリースノート 8027
Django 2.2.8 リリースノート 2019年12月2日 Django 2.2.8 fixes a security issue, several bugs in 2.2.7, and adds compatibility with Python 3.8. CVE-2019-19118: Privilege escalation in the Django admin. Since Django 2.1, a Django model admin d ... ot allow direct edits to the parent model, but would trigger the parent model's save() method, and cause pre and post-save signal handlers to be invoked. This is a privilege escalation as a user who lacks permission to edit a model should not be able t ... o trigger its save-related signals. To resolve this issue, the permission handling code of the Django admin interface has been changed. Now, if a user has o ...
https://man.mtool.work/django/6.1/releases/2.2.8.html
Django 5.0.3 リリースノート 7945
Django 5.0.3 リリースノート 2024年3月4日 Django 5.0.3 では、 5.0.2 における深刻度 "moderate" のセキュリティの問題1件と、いくつかのバグを修正しました。 CVE-2024-27351: django.utils.text.Truncator.words() における正規表現によるサービス拒否の可 ... を返してしまう場合があるリグレッションを修正しました ( #35172 )。 Django 5.0 において、すべてのレシーバが非同期関数の場合に Signal.asend() と asend_robust() がクラッシュしてしまうバグを修正しました ( #35174 )。 Django 5.0.1 において、 ModelAdmin.list_fi ...
https://man.mtool.work/django/6.1/releases/5.0.3.html
PREV 1 2 3 NEXT