Ticket #16492: 16492.diff

File 16492.diff, 1.6 KB (added by aaugustin, 4 years ago)
  • docs/topics/db/transactions.txt

     
    204204if your transaction only reads from the database, the transaction must
    205205be committed or rolled back before you complete a request.
    206206
     207.. _topics-db-transactions-deactivate-management:
     208
    207209How to globally deactivate transaction management
    208210=================================================
    209211
    210212Control freaks can totally disable all transaction management by setting
    211 ``DISABLE_TRANSACTION_MANAGEMENT`` to ``True`` in the Django settings file.
     213:setting:`TRANSACTIONS_MANAGED` to ``False`` in the Django settings file.
    212214
    213215If you do this, Django won't provide any automatic transaction management
    214216whatsoever. Middleware will no longer implicitly commit transactions, and
  • docs/ref/settings.txt

     
    19321932
    19331933.. _See available choices: http://www.postgresql.org/docs/8.1/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE
    19341934
     1935.. setting:: TRANSACTIONS_MANAGED
     1936
     1937TRANSACTIONS_MANAGED
     1938--------------------
     1939
     1940Default: ``True``
     1941
     1942Set this to ``False`` if you want to disable all transaction management. This
     1943setting is only useful if you do exotic things with your database. See
     1944:ref:`topics-db-transactions-deactivate-management`.
     1945
    19351946.. setting:: URL_VALIDATOR_USER_AGENT
    19361947
    19371948URL_VALIDATOR_USER_AGENT
Back to Top