Boolean. Only relevant if using the FreeTDS ODBC driver under
Unix/Linux.

By default, when using the FreeTDS ODBC driver the value specified in
the HOST setting is used in a SERVERNAME ODBC connection
string component instead of being used in a SERVER component;
this means that this value should be the name of a dataserver
definition present in the freetds.conf FreeTDS configuration file
instead of a hostname or an IP address.

But if this option is present and it’s value is True, this
special behavior is turned off.

Boolean. If it is set to True, pyodbc’s unicode_results feature
is activated and strings returned from pyodbc are always Unicode.
Default value is False.

extra_params

String. Additional parameters for the ODBC connection. The format is
"param=value;param=value".

collation

String. Name of the collation to use when performing text field
lookups against the database. Default is None; this means no
collation specifier is added to your lookup SQL (the default
collation of your database will be used). For Chinese language you
can set it to "Chinese_PRC_CI_AS".

use_legacy_datetime

Boolean. DateField, TimeField and DateTimeField of models
are mapped to SQL Server’s legacy datetime type if the value is True
(the same behavior as the original django-pyodbc). Otherwise, they
are mapped to new dedicated data types (date, time, datetime2).
Default value is False, and note that the feature is always activated
when you use SQL Server 2005, or the outdated ODBC drivers
("FreeTDS"/"SQL Server"/"SQL Native Client").

connection_timeout

Integer. Sets the timeout in seconds for the database connection process.
Default value is 0 which disables the timeout.

backend-specific settings

The following project-level settings also control the behavior of the backend:

DATABASE_CONNECTION_POOLING

Boolean. If it is set to False, pyodbc’s connection pooling feature
won’t be activated.