mirror of
https://github.com/django/django.git
synced 2025-07-24 05:36:15 +00:00
Fixed #2304 -- Documented TRANSACTIONS_MANAGED.
This commit is contained in:
parent
7eba5fbc02
commit
a001f3c31e
3 changed files with 13 additions and 3 deletions
|
@ -208,11 +208,13 @@ This applies to all database operations, not just write operations. Even
|
|||
if your transaction only reads from the database, the transaction must
|
||||
be committed or rolled back before you complete a request.
|
||||
|
||||
.. _deactivate-transaction-management:
|
||||
|
||||
How to globally deactivate transaction management
|
||||
=================================================
|
||||
|
||||
Control freaks can totally disable all transaction management by setting
|
||||
``DISABLE_TRANSACTION_MANAGEMENT`` to ``True`` in the Django settings file.
|
||||
:setting:`TRANSACTIONS_MANAGED` to ``True`` in the Django settings file.
|
||||
|
||||
If you do this, Django won't provide any automatic transaction management
|
||||
whatsoever. Middleware will no longer implicitly commit transactions, and
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue