Django 4.2.x Documentationdefined separately from the query’s parameters. Since parameters may be user-provided and therefore unsafe, they are escaped by the underlying database driver. Django also gives developers power to write enable ASGI mode if you have asynchronous code in your project. Async safety DJANGO_ALLOW_ASYNC_UNSAFE Certain key parts of Django are not able to operate safely in an async environment, as they have have global state that is not coroutine-aware. These parts of Django are classified as “async-unsafe”, and are protected from execution in an async environment. The ORM is the main example, but there are0 码力 | 3305 页 | 3.16 MB | 1 年前3
Django 4.0.x Documentationdefined separately from the query’s parameters. Since parameters may be user-provided and therefore unsafe, they are escaped by the underlying database driver. Django also gives developers power to write ASGI mode if you have asynchronous code in your project. 3.25.2 Async safety DJANGO_ALLOW_ASYNC_UNSAFE Certain key parts of Django are not able to operate safely in an async environment, as they have have global state that is not coroutine-aware. These parts of Django are classified as “async-unsafe”, and are protected from execution in an async environment. The ORM is the main example, but there are0 码力 | 2248 页 | 7.90 MB | 1 年前3
Django 4.1.x Documentationdefined separately from the query’s parameters. Since parameters may be user-provided and therefore unsafe, they are escaped by the underlying database driver. Django also gives developers power to write enable ASGI mode if you have asynchronous code in your project. Async safety DJANGO_ALLOW_ASYNC_UNSAFE Certain key parts of Django are not able to operate safely in an async environment, as they have have global state that is not coroutine-aware. These parts of Django are classified as “async-unsafe”, and are protected from execution in an async environment. The ORM is the main example, but there are0 码力 | 3240 页 | 3.13 MB | 1 年前3
Django 4.0.x Documentationdefined separately from the query’s parameters. Since parameters may be user-provided and therefore unsafe, they are escaped by the underlying database driver. Django also gives developers power to write enable ASGI mode if you have asynchronous code in your project. Async safety DJANGO_ALLOW_ASYNC_UNSAFE Certain key parts of Django are not able to operate safely in an async environment, as they have have global state that is not coroutine-aware. These parts of Django are classified as “async-unsafe”, and are protected from execution in an async environment. The ORM is the main example, but there are0 码力 | 3184 页 | 3.14 MB | 1 年前3
Django 3.0.x Documentationdefined separately from the query’s parameters. Since parameters may be user-provided and therefore unsafe, they are escaped by the underlying database driver. Django also gives developers power to write they have global state that is not coroutine-aware. These parts of Django are classified as “async-unsafe”, and are protected from execution in an asynchronous environment. The ORM is the main example, but to not call the offending code from an async context; instead, write your code that talks to async-unsafe in its own, synchronous function, and call that using asgiref.sync.sync_to_async(), or any other0 码力 | 3085 页 | 2.95 MB | 1 年前3
Django 3.2.x Documentationdefined separately from the query’s parameters. Since parameters may be user-provided and therefore unsafe, they are escaped by the underlying database driver. Django also gives developers power to write ASGI mode if you have asynchronous code in your project. 3.25.2 Async safety DJANGO_ALLOW_ASYNC_UNSAFE Certain key parts of Django are not able to operate safely in an async environment, as they have have global state that is not coroutine-aware. These parts of Django are classified as “async-unsafe”, and are protected from execution in an async environment. The ORM is the main example, but there are0 码力 | 2199 页 | 7.89 MB | 1 年前3
Django 3.1.x Documentationdefined separately from the query’s parameters. Since parameters may be user-provided and therefore unsafe, they are escaped by the underlying database driver. Django also gives developers power to write ASGI mode if you have asynchronous code in your project. 3.25.2 Async safety DJANGO_ALLOW_ASYNC_UNSAFE Certain key parts of Django are not able to operate safely in an async environment, as they have have global state that is not coroutine-aware. These parts of Django are classified as “async-unsafe”, and are protected from execution in an async environment. The ORM is the main example, but there are0 码力 | 2053 页 | 6.92 MB | 1 年前3
Django 3.2.x Documentationdefined separately from the query’s parameters. Since parameters may be user-provided and therefore unsafe, they are escaped by the underlying database driver. Django also gives developers power to write enable ASGI mode if you have asynchronous code in your project. Async safety DJANGO_ALLOW_ASYNC_UNSAFE Certain key parts of Django are not able to operate safely in an async environment, as they have have global state that is not coroutine-aware. These parts of Django are classified as “async-unsafe”, and are protected from execution in an async environment. The ORM is the main example, but there are0 码力 | 3121 页 | 3.08 MB | 1 年前3
Django 3.1.x Documentationdefined separately from the query’s parameters. Since parameters may be user-provided and therefore unsafe, they are escaped by the underlying database driver. Django also gives developers power to write enable ASGI mode if you have asynchronous code in your project. Async safety DJANGO_ALLOW_ASYNC_UNSAFE Certain key parts of Django are not able to operate safely in an async environment, as they have have global state that is not coroutine-aware. These parts of Django are classified as “async-unsafe”, and are protected from execution in an async environment. The ORM is the main example, but there are0 码力 | 3094 页 | 3.03 MB | 1 年前3
Django 5.1.2 Documentationdefined separately from the query’s parameters. Since parameters may be user-provided and therefore unsafe, they are escaped by the underlying database driver. Django also gives developers power to write can also handle client disconnects in streaming responses. 3.25.2 Async safety DJANGO_ALLOW_ASYNC_UNSAFE Certain key parts of Django are not able to operate safely in an async environment, as they have have global state that is not coroutine-aware. These parts of Django are classified as“async-unsafe”, and are protected from execution in an async environment. The ORM is the main example, but there are0 码力 | 2923 页 | 9.62 MB | 1 年前3
共 32 条
- 1
- 2
- 3
- 4













