Just wondering if I can only apply database_options to a specific database if multiple databases are defined in settings? And how???
eg. I have defined the databases like this:
DATABASES = {
'default': {...},
'db2': {...}
}
the ultimate goal is to set the connection timeout value for db2 database without affecting default database
Yes you can.
Btw, are you still using django 1.1 cos that’s what your database_options link point to (https://docs.djangoproject.com/en/1.1/ref/databases/).