def create_database():
db = get_db()<EOL>response = db.query('<STR_LIT>')<EOL>items = list(response.get_points('<STR_LIT>'))<EOL>databases = [database['<STR_LIT:name>'] for database in items]<EOL>if settings.INFLUXDB_DATABASE not in databases:<EOL><INDENT>db.create_database(settings.INFLUXDB_DATABASE)<EOL>print(('<STR_LIT>'.format(settings.INFLUXDB_DATABASE)))<EOL><DEDENT>
creates database if necessary