per page, with , order by , clip by
Results of 1 - 10 of about 33 for handler (0.003 sec.)
フィクスチャ (fixture) 13941
フィクスチャ (fixture) フィクスチャ (fixture) とは、シリアライズされたデータベースのコンテンツを含むファイルのコレクションです。各フィクスチャにはユニークな名前があり、フィクスチャを構成するファイルは、複数のアプリケーションの複数のディレク ... th raw=True since the instance only contains attributes that are local to the model. You may, for example, want to disable handlers that access 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 if kwargs [ "raw" ]: return ... post_save . connect ( my_handl ... このロジックをカプセル化するデコレータを書くこともできます: from functools import wraps def disable_for_loaddata ( signal_handler ): """ Decorator that turns off signal handlers when loading fixture data. """ @wraps ( signal_handler ) def wrapper ( * a ...
https://man.mtool.work/django/6.1/topics/db/fixtures.html
ビューを記述する 11326
ビューを記述する ビュー関数、つまり view は、Web リクエストを受け取って Web レスポンスを返すPython 関数です。 このレスポンスは、WebページのHTMLコンテンツ、リダイレクトや404エラー、またはXMLドキュメントやイメージ、その他何にでもなり得ます (本 ... きます。 URLconf で以下のようにハンドラを指定してください (他の場所で設定しても効果はありません)。 page_not_found() ビューは handler404 でオーバーライドされます: handler404 = "mysite.views.my_custom_page_not_found_view" server_error() ビューは handler500 ... でオーバーライドされます: handler500 = "mysite.views.my_custom_error_view" permission_denied() ビューは handler403 でオーバーライドされます: handler403 = "m ... ysite.views.my_custom_permission_denied_view" bad_request() ビューは handler400 でオーバーライドされます: handler400 = "mysite.views.my_custom_bad_request_view" 参考 CSRF エラービューをオーバーライド ...
https://man.mtool.work/django/6.1/topics/http/views.html
シグナル 11326
シグナル Django には "シグナルディスパッチャ" があり、フレームワークの他の場所でアクションが発生したときに、ほかのアプリケーションが通知を受けるのを助けてくれます。簡単に言うと、シグナルは特定の 送り手 が、あるアクションが発生したことを一連 ... elf ): # Implicitly connect signal receivers decorated with @receiver. from . import signals # Explicitly connect a signal handler. request_finished . connect ( signals . my_receiver ) 注釈 The ready() method may be executed more than once during testin ... ave from django.dispatch import receiver from myapp.models import MyModel @receiver ( pre_save , sender = MyModel ) def my_handler ( sender , ** kwargs ): ... my_handler 関数は MyModel のインスタンスが保存されたときにだけ呼び出されます。 異なるシグナルは ... c methods, and class methods, the identity is stable, so connecting the same receiver more than once has no effect: def my_handler ( sender , ** kwargs ): ... my_signal . connect ( my_handler ) # Running this code again is a no-op. Bound methods, which ...
https://man.mtool.work/django/6.1/topics/signals.html
配信 (syndication) フィード フレームワーク 9818
配信 (syndication) フィード フレームワーク Django には、 RSS と Atom フィードを作成するための高レベルな配信 (syndication) フィード生成フレームワークが付属しています。 任意の配信フィードを作成するには、短い Python クラスを書くだけで済みます。 ... tes(self) ルートフィード要素 ( feed / channel ) に追加する属性の dict を返します。 SyndicationFeed.add_root_elements(self, handler) ルートフィード要素 ( feed / channel ) 内に要素を追加するためのコールバックです。 handler はPythonの組み込みSAXライブラリか ... す。引数の item は、 SyndicationFeed.add_item() に渡されるすべてのデータの辞書です。 SyndicationFeed.add_item_elements(self, handler, item) 各アイテム ( item / entry ) 要素に要素を追加するためのコールバックです。 handler と item は上記の通りです。 警告 こ ... tes () attrs [ "xmlns:itunes" ] = "http://www.itunes.com/dtds/podcast-1.0.dtd" return attrs def add_root_elements ( self , handler ): super () . add_root_elements ( handler ) handler . addQuickElement ( "itunes:explicit" , "clean" ) 完全なカスタムフィー ...
https://man.mtool.work/django/6.1/ref/contrib/syndication.html
Django 1.11.6 リリースノート 9593
Django 1.11.6 リリースノート October 5, 2017 Django 1.11.6 fixes several bugs in 1.11.5. バグ修正 Made the CharField form field convert whitespace-only values to the empty_value when strip is enabled ( #28555 ). Fixed crash when using the n ... ogenerated primary key ( id ) in an Index 's fields ( #28597 ). Fixed a regression in Django 1.9 where a custom view error handler such as handler404 that accesses csrf_token could cause CSRF verification failures on other pages ( #28488 ). ...
https://man.mtool.work/django/6.1/releases/1.11.6.html
ロギングの設定と利用 8936
ロギングの設定と利用 参考 Django のロギング リファレンス Django のロギングの概要 Django はそのままで動作する デフォルトのロギング設定 を持っており、すぐに拡張可能です。 基本的なロギング呼び出しを作成する ログメッセージをコード内から送信する ... s を False に設定することで、デフォルトのロギング設定を保持し、拡張できます。 ハンドラを設定する この例では、Python の FileHandler を使って、レベル DEBUG 以上のログを (プロジェクトルート内の) general.log ファイルに保存する file という名前のハンドラを設定 ... します: LOGGING = { # ... "handlers" : { "file" : { "class" : "logging.FileHandler" , "filename" : "general.log" , }, }, } Different handler classes take dif ... ferent configuration options. For more information on available handler classes, see the AdminEmailHandler provided by Django and the various handler classes provided by Python. ログレベルはハン ...
https://man.mtool.work/django/6.1/howto/logging.html
Django 1.4 リリースノート 8294
Django 1.4 リリースノート March 23, 2012 Django 1.4 へようこそ! 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.3 or older versions. We've a ... ssible to load fixtures containing forward references when using MySQL with the InnoDB database engine. A new 403 response handler has been added as 'django.views.defaults.permission_denied' . You can set your own handler by setting the value of django. ... conf.urls.handler403 . See the documentation about the 403 (HTTP Forbidden) view for more information. makemessages コマンドが JavaScript フ ... hen we added logging support in Django in 1.3, the admin error email support was moved into the django.utils.log.AdminEmailHandler , attached to the 'django.request' logger. In order to maintain the established behavior of error emails, the 'django.requ ...
https://man.mtool.work/django/6.1/releases/1.4.html
Django 4.2.28 release notes 8294
Django 4.2.28 release notes February 3, 2026 Django 4.2.28 fixes three security issues with severity "high", two security issues with severity "moderate", and one security issue with severity "low" in 4.2.27. CVE-2025-13473: Username enumer ... ation through timing difference in mod_wsgi authentication handler The django.contrib.auth.handlers.modwsgi.check_password() function for authentication via mod_wsgi allowed remote attacker ...
https://man.mtool.work/django/6.1/releases/4.2.28.html
Django 5.2.11 release notes 8294
Django 5.2.11 release notes February 3, 2026 Django 5.2.11 fixes three security issues with severity "high", two security issues with severity "moderate", and one security issue with severity "low" in 5.2.10. CVE-2025-13473: Username enumer ... ation through timing difference in mod_wsgi authentication handler The django.contrib.auth.handlers.modwsgi.check_password() function for authentication via mod_wsgi allowed remote attacker ...
https://man.mtool.work/django/6.1/releases/5.2.11.html
Django 1.3 リリースノート 8069
Django 1.3 リリースノート March 23, 2011 Django 1.3 へようこそ! Nearly a year in the making, Django 1.3 includes quite a few new features and plenty of bug fixes and improvements to existing features. These release notes cover the new featu ... ng module. This means you can now easily configure and control logging as part of your Django project. A number of logging handlers and logging calls have been added to Django's own code as well -- most notably, the error emails sent on an HTTP 500 serv ... d the lighter, slimmer, more stable, and more flexible mod_wsgi backend. If you are currently using the mod_python request handler, you should redeploy your Django projects using another request handler. mod_wsgi is the request handler recommended by th ...
https://man.mtool.work/django/6.1/releases/1.3.html
PREV 1 2 3 4 NEXT