Results of 1 - 10 of about 32 for thread (0.040 sec.)
- asgiref.sync — Django 4.0.6 ドキュメント 15127
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
nctools import inspect import os import sys import threading import warnings import weakref from concurrent. ...
futures import Future , ThreadPoolExecutor from typing import Any , Callable , Di ...
ct , Optional , overload from .current_thread_executor import CurrentThreadExecutor from .local ...
eturn asyncio . iscoroutinefunction ( func ) class ThreadSensitiveContext : """Async context manager to mana ...
-
https://man.plustar.jp/django/_modules/asgiref/sync.html
- [similar]
- 非同期サポート — Django 4.0.6 ドキュメント 13097
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
lts = await sync_to_async ( Blog . objects . get , thread_sensitive = True )( pk = 123 ) 次のコードのように、 ...
( pk = pk ) get_blog = sync_to_async ( _get_blog , thread_sensitive = True ) 非同期ビューから、同期的なDjang ...
mode for the view. Django will also hold the sync thread open for middleware exception propagation. This ma ...
oticeable at first, but adding this penalty of one thread per request can remove any async performance advan ...
-
https://man.plustar.jp/django/topics/async.html
- [similar]
- Django の例外 — Django 4.0.6 ドキュメント 8393
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
hon code is called from an asynchronous context (a thread with a running asynchronous event loop). These par ...
ts of Django are generally heavily reliant on thread-safety to function and don't work correctly under ...
coroutines sharing the same thread. If you are trying to call code that is synchronou ...
s-only from an asynchronous thread, then create a synchronous thread and call it in t ...
-
https://man.plustar.jp/django/ref/exceptions.html
- [similar]
- How to create custom template tags and filters — Django 4.0.6 ドキュメント 8264
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
e tag is used inside a {% autoescape off %} block. Thread-safety considerations ¶ Once a node is parsed, its ...
r of times. Since Django is sometimes run in multi-threaded environments, a single node may be simultaneousl ...
it's important to make sure your template tags are thread safe. To make sure your template tags are thread s ...
the template snippet from above at the same time: Thread 1 performs its first loop iteration, CycleNode.ren ...
-
https://man.plustar.jp/django/howto/custom-template-tags.html
- [similar]
- Django 1.2 リリースノート — Django 4.0.6 ドキュメント 8264
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
ods are new. The GEOS interface was updated to use thread-safe C library functions when available on the pla ...
their Node subclass have always been vulnerable to thread-safety and other issues; as of Django 1.2, however ...
nsure that the Node implementation for each tag is thread-safe. For more information, see template tag threa ...
implementation of Django's template tags not being thread safe. The cycle tag is the most likely to be affec ...
-
https://man.plustar.jp/django/releases/1.2.html
- [similar]
- データベース — Django 4.0.6 ドキュメント 7958
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
uest gets a fresh connection. Caveats ¶ Since each thread maintains its own connection, your database must s ...
s many simultaneous connections as you have worker threads. Sometimes a database won't be accessed by the ma ...
tabase small. The development server creates a new thread for each request it handles, negating the effect o ...
es outside the standard library. These drivers are thread-safe and provide connection pooling. In addition t ...
-
https://man.plustar.jp/django/ref/databases.html
- [similar]
- Django 1.4 release notes — Django 4.0.6 ドキュメント 7958
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
update your except clauses. Database connection's thread-locality ¶ DatabaseWrapper objects (i.e. the conne ...
d django.db.connections["some_alias"] ) used to be thread-local. They are now global objects in order to be ...
potentially shared between multiple threads. While the individual connection objects are now ...
ions dictionary referencing those objects is still thread-local. Therefore if you just use the ORM or Databa ...
-
https://man.plustar.jp/django/releases/1.4.html
- [similar]
- django.db.transaction — Django 4.0.6 ドキュメント 7877
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
nter used to generate unique savepoint ids in this thread. """ get_connection ( using ) . clean_savepoints ( ...
a:` multiple times. Since database connections are thread-local, this is thread-safe. An atomic block can be ...
-
https://man.plustar.jp/django/_modules/django/db/transaction.html
- [similar]
- django.db.utils — Django 4.0.6 ドキュメント 7877
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
TABASES" # Connections needs to still be an actual thread local, as it's truly # thread-critical. Database b ...
though, so we don't allow that if we can help it. thread_critical = True def configure_settings ( self , da ...
-
https://man.plustar.jp/django/_modules/django/db/utils.html
- [similar]
- django — Django 4.0.6 ドキュメント 7748
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
ure logging and populate the app registry. Set the thread-local urlresolvers script prefix if `set_prefix` i ...
-
https://man.plustar.jp/django/_modules/django.html
- [similar]