﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
31969	'database' option in conf file not working	komaljeet	nobody	"I am assumimg this is a bug since as per docs, we should be able to use 'database' in conf file. 
It its not a bug, please close the ticket.

https://docs.djangoproject.com/en/3.1/ref/databases/#mysql-notes

Putting 'database' in conf file does not work, exception raised is:
django.db.utils.InternalError: (1046, 'No database selected')

DB_CONF_PATH = /path/to/conf/file
[client]

database = xxxxx 
host =xxxxx
user = xxxxxxx
password = xxxxxx
default-character-set = utf8

But putting it settings.DATABASES dict works.
{{{
DATABASES = {
    'default': {
        'ENGINE': 'mysql_cymysql',
        'OPTIONS': {
            'read_default_file': DB_CONF_PATH,
        
        },
        'NAME' : 'xxxxxx'
    }
}
}}}
"	Bug	closed	Database layer (models, ORM)	3.1	Normal	worksforme			Unreviewed	0	0	0	0	0	0
