def configure_settings():
os.environ.setdefault('<STR_LIT>', '<STR_LIT>')<EOL>if not settings.configured:<EOL><INDENT>test_db = os.environ.get('<STR_LIT>', None)<EOL>if test_db is None:<EOL><INDENT>db_config = {<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>': {<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>}<EOL>}<EOL><DEDENT>elif test_db == '<STR_LIT>':<EOL><INDENT>db_config = {<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>}<EOL><DEDENT>else:<EOL><INDENT>raise RuntimeError('<STR_LIT>'.format(test_db))<EOL><DEDENT>installed_apps = [<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>]<EOL>settings.configure(<EOL>TEST_RUNNER='<STR_LIT>',<EOL>NOSE_ARGS=['<STR_LIT>', '<STR_LIT>', '<STR_LIT>'],<EOL>DATABASES={<EOL>'<STR_LIT:default>': db_config,<EOL>},<EOL>MIDDLEWARE_CLASSES={},<EOL>INSTALLED_APPS=installed_apps,<EOL>ROOT_URLCONF='<STR_LIT>',<EOL>DEBUG=False,<EOL>DDF_FILL_NULLABLE_FIELDS=False,<EOL>)<EOL><DEDENT>
Configures settings for manage.py and for run_tests.py.