def db_exists():
logger.info("<STR_LIT>", repr(DB["<STR_LIT>"]))<EOL>try:<EOL><INDENT>psql("<STR_LIT>", stderr=subprocess.STDOUT)<EOL><DEDENT>except subprocess.CalledProcessError:<EOL><INDENT>return False<EOL><DEDENT>return True<EOL>
Test if DATABASES['default'] exists