per page, with , order by , clip by
Results of 1 - 10 of about 22 for executed (0.004 sec.)
Tasks 14780
Tasks New in Django 6.0. The Task framework provides the contract and plumbing for background work, not the engine that runs it. The Tasks API defines how work is described, queued, and tracked, but leaves actual execution to external infra ... t" . This must match a queue defined in QUEUES , unless QUEUES is set to [] . run_after The earliest time the Task will be executed. This can be a timedelta , which is used relative to the current time, a timezone-aware datetime , or None if not constrai ... Status [ソース] An Enum representing the status of a TaskResult . READY The Task has just been enqueued, or is ready to be executed again. RUNNING The Task is currently being executed. FAILED The Task raised an exception during execution, or was unable t ... been run. If the task is currently running, it does not count as an attempt. worker_ids The ids of the workers which have executed the Task. Task errors class TaskError Contains information about the error raised during the execution of a Task . traceba ...
https://man.mtool.work/django/6.1/ref/tasks.html
シグナル 10774
シグナル Django には "シグナルディスパッチャ" があり、フレームワークの他の場所でアクションが発生したときに、ほかのアプリケーションが通知を受けるのを助けてくれます。簡単に言うと、シグナルは特定の 送り手 が、あるアクションが発生したことを一連 ... # Explicitly connect a signal handler. request_finished . connect ( signals . my_receiver ) 注釈 The ready() method may be executed more than once during testing, so you may want to guard your signals from duplication if your receiver is a bound method o ... ey are async before being called. This means that an asynchronous receiver registered before a synchronous receiver may be executed after the synchronous receiver. In addition, async receivers are executed concurrently using asyncio.TaskGroup . 非同期のリ ... み込みシグナルは Signal.send() を使ってディスパッチされます。 Changed in Django 6.1: In older versions, async receivers were executed via asyncio.gather() . シグナルを切断する Signal. disconnect ( receiver = None , sender = None , dispatch_uid = None ) [ソ ...
https://man.mtool.work/django/6.1/topics/signals.html
Django's Tasks framework 10319
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 often more than just turning HTTP requests into HTTP responses. For some functionality, it may be ... ycle. Configuring a Task backend The Task backend determines how and where Tasks are stored for execution and how they are executed. Different Task backends have different characteristics and configuration options, which may impact the performance and re ... enforced. Task context Sometimes, the running Task may need to know context about how it was enqueued, and how it is being executed. This can be accessed by taking a context argument, which is an instance of TaskContext . To receive the Task context as a ... >>> email_users . using ( priority = 10 ) . priority 10 Enqueueing Tasks To add the Task to the queue store, so it will be executed, call the enqueue() method on it. If the Task takes arguments, these can be passed as-is. For example: result = email_user ...
https://man.mtool.work/django/6.1/topics/tasks.html
ミドルウェア (Middleware) 9848
ミドルウェア (Middleware) ミドルウェアは、Django のリクエスト/レスポンス処理にフックを加えるためのフレームワークです。これは、Django の入力あるいは出力をグローバルに置き換えるための、軽量で低レベルの「プラグイン」システムです。 各ミドルウェ ... simple_middleware ( get_response ): # One-time configuration and initialization. def middleware ( request ): # Code to be executed for each request before # the view (and later middleware) are called. response = get_response ( request ) # Code to be exe ... f . get_response = get_response # One-time configuration and initialization. def __call__ ( self , request ): # Code to be executed for each request before # the view (and later middleware) are called. response = self . get_response ( request ) # Code to ... be executed for each request/response after # the view is called. return response Django によって渡される get_response 呼び出し可能オブ ...
https://man.mtool.work/django/6.1/topics/http/middleware.html
Django 1.5 リリースノート 8434
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 ... that might need it. Ordering of tests In order to make sure all TestCase code starts with a clean database, tests are now executed in the following order: First, all unit tests (including unittest.TestCase , SimpleTestCase , TestCase and TransactionTest ... nal state are run. This should not cause any problems unless you have existing doctests which assume a TransactionTestCase executed earlier left some database state behind or unit tests that rely on some form of state being preserved after the execution ...
https://man.mtool.work/django/6.1/releases/1.5.html
Django 1.6.3 リリースノート 8434
Django 1.6.3 リリースノート April 21, 2014 Django 1.6.3 fixes several bugs in 1.6.2, including three security issues, and makes one backwards-incompatible change: Unexpected code execution using reverse() Django's URL handling is based on a ... executing queries. select_for_update() requires a transaction Historically, queries that use select_for_update() could be executed in autocommit mode, outside of a transaction. Before Django 1.6, Django's automatic transactions mode allowed this to be u ...
https://man.mtool.work/django/6.1/releases/1.6.3.html
Django におけるセキュリティ 8434
Django におけるセキュリティ このドキュメントは、Django のセキュリティ機能の概要です。Django を利用したサイトを安全なものにするためのヒントを説明します。 Real-world security Django's web security implementations have been designed with secur ... g attack, malicious code in the form of a client-side script is injected into another user's web browser, where it will be executed. This is typically done by: storing the malicious script in the database where it will be retrieved and presented to other ... users in their browsers, or getting users to click a link which will cause the attacker's JavaScript to be executed by the user's browser. Cross-site scripting attacks can originate from any untrusted source of data, including cookies or ...
https://man.mtool.work/django/6.1/topics/security.html
ロギングの設定と利用 7962
ロギングの設定と利用 参考 Django のロギング リファレンス Django のロギングの概要 Django はそのままで動作する デフォルトのロギング設定 を持っており、すぐに拡張可能です。 基本的なロギング呼び出しを作成する ログメッセージをコード内から送信する ... def some_view ( request ): ... if some_risky_state : logger . warning ( "Platform is running at risk" ) When this code is executed, a LogRecord containing that message will be sent to the logger. If you're using Django's default logging configuration, t ...
https://man.mtool.work/django/6.1/howto/logging.html
Django 1.7 リリースノート 7962
Django 1.7 リリースノート September 2, 2014 Django 1.7 へようこそ! このリリースノートでは、 バージョン 1.7 の新機能 と、Django 1.6 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した ... equest methods of Client . If True , the request will be made through HTTPS. assertNumQueries() now prints out the list of executed queries if the assertion fails. The WSGIRequest instance generated by the test handler is now attached to the django.test. ... invalid_login key. select_for_update() requires a transaction Historically, queries that use select_for_update() could be executed in autocommit mode, outside of a transaction. Before Django 1.6, Django's automatic transactions mode allowed this to be u ...
https://man.mtool.work/django/6.1/releases/1.7.html
Unit tests 7727
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 times. We appreciate any and all contributions to the test suite! The Django tests all use the ... S) will appear as not covered when run on Ubuntu. Coverage doesn't equal quality: A line being "covered" only means it was executed during tests. It doesn't guarantee the line is well-tested or that all edge cases are handled. During review, assess test ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/unit-tests...
PREV 1 2 3 NEXT