Open blanchardjeremy opened 12 years ago
Yes, good use case. Can you implement and I'll merge (not sure when I'll have a chance to do it myself)?
Unfortunately, I also don't have any time to do this right now.
I ended up just using dumpdata to get the same effects for now. Not a great solution but it works in the mean time.
I have the following use case that I'd like to have supported:
manage.py generate
ormanage.py syncdb
APPNAME/fixtures/generator.json
... This dump could be done the same waymanage.py dumpdata
is done.The reason I need that is because I'd like to use the generated data in my unit tests. Right now, I use
run_command('generate')
for each test which is really slow. With these automatic json dumps, I could just specifygenerator.json
which is much quicker.Is this something you'd be willing to add?