def fill_database(fixtures, verbosity=1):
    if not isinstance(fixtures, list):
        raise TypeError("Argument fixtures should be of type list.")
    if not len(fixtures):
        raise ValueError("Argument fixtures is empyt.")

    def echo(msg):
        if verbosity:
            print msg

    names = [c.__name__ for c in fixtures]

    echo("Datasets:\n\t%s" % "\n\t".join(names))
    loader = DjangoFixture(style=NamedDataStyle())
    data = loader.data(*fixtures)
    echo("Installing datasets...")
    data.setup()
    echo("Done.")
Fill all datasets listed in ``fixtures`` into database.
dataset/ETHPy150Open henriquebastos/django-fixturapp/src/fixturapp/management/commands/__init__.py/fill_database