Load Multiple Fixtures at Once

silent1mezzo picture silent1mezzo · Feb 8, 2010 · Viewed 13.9k times · Source

Is there anyway to load one fixture and have it load multiple fixtures?

I'd ideally like to type:

python manage.py loaddata all_fixtures

And have that load all of the data instead of having to type everything. Is this possible?

Answer

speakman picture speakman · Feb 9, 2010

Using $ python manage.py loaddata myfixtures/*.json would work as Bash will substitute the wildcard to a list of matching filenames.