def get_connection_params(self):
valid_settings = {<EOL>'<STR_LIT>': '<STR_LIT:name>',<EOL>'<STR_LIT>': '<STR_LIT:host>',<EOL>'<STR_LIT>': '<STR_LIT:port>',<EOL>'<STR_LIT>': '<STR_LIT:username>',<EOL>'<STR_LIT>': '<STR_LIT:password>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>'<EOL>}<EOL>connection_params = {<EOL>'<STR_LIT:name>': '<STR_LIT>',<EOL>'<STR_LIT>': True<EOL>}<EOL>for setting_name, kwarg in valid_settings.items():<EOL><INDENT>try:<EOL><INDENT>setting = self.settings_dict[setting_name]<EOL><DEDENT>except KeyError:<EOL><INDENT>continue<EOL><DEDENT>if setting or setting is False:<EOL><INDENT>connection_params[kwarg] = setting<EOL><DEDENT><DEDENT>return connection_params<EOL>
Default method to acquire database connection parameters.

Sets connection parameters to match settings.py, and sets
default values to blank fields.