mirror of
https://github.com/django/django.git
synced 2024-11-29 22:56:46 +01:00
Fixed #31400 -- Doc'd the expected type of CONN_MAX_AGE database option.
This commit is contained in:
parent
d0da2820ca
commit
bec4dea844
@ -37,7 +37,7 @@ connection. It can be set independently for each database.
|
||||
|
||||
The default value is ``0``, preserving the historical behavior of closing the
|
||||
database connection at the end of each request. To enable persistent
|
||||
connections, set :setting:`CONN_MAX_AGE` to a positive number of seconds. For
|
||||
connections, set :setting:`CONN_MAX_AGE` to a positive integer of seconds. For
|
||||
unlimited persistent connections, set it to ``None``.
|
||||
|
||||
Connection management
|
||||
|
@ -597,9 +597,9 @@ file. When specifying the path, always use forward slashes, even on Windows
|
||||
|
||||
Default: ``0``
|
||||
|
||||
The lifetime of a database connection, in seconds. Use ``0`` to close database
|
||||
connections at the end of each request — Django's historical behavior — and
|
||||
``None`` for unlimited persistent connections.
|
||||
The lifetime of a database connection, as an integer of seconds. Use ``0`` to
|
||||
close database connections at the end of each request — Django's historical
|
||||
behavior — and ``None`` for unlimited persistent connections.
|
||||
|
||||
.. setting:: OPTIONS
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user